arb_es2_compatibility: Check return value.
[piglit.git] / appveyor.yml
blob55f5703a023ff3d5a16920e0166ebb3c3ec8af98
1 # https://www.appveyor.com/docs/appveyor-yml
3 # To setup AppVeyor for your own personal repositories do the following:
4 # - Go to https://gitlab.freedesktop.org/profile/personal_access_tokens and
5 #   create a new token with 'api' and 'read_repository' access.
6 # - Sign up to AppVeyor
7 # - Add a new project
8 # - Select GitLab EE
9 # - Fill GitLab URL as https://gitlab.freedesktop.org/ and paste the token above.
10 # - Enable for your personal repository.
12 # See also:
13 # - https://help.appveyor.com/discussions/questions/1184-build-config-vs-appveyoryaml
15 version: '{build}'
17 branches:
18   except:
19   - /^travis.*$/
21 # Don't download the full Mesa history to speed up cloning.  However the clone
22 # depth must not be too small, otherwise builds might fail when lots of patches
23 # are committed in succession, because the desired commit is not found on the
24 # truncated history.
26 # See also:
27 # - https://www.appveyor.com/blog/2014/06/04/shallow-clone-for-git-repositories
28 clone_depth: 100
30 cache:
31 - freeglut-MinGW-3.0.0-1.mp.zip
32 - freeglut-MinGW-3.0.0-2.mp.zip
34 # https://www.appveyor.com/docs/build-environment/#build-worker-images
35 os: Visual Studio 2015
37 environment:
38   PYTHON_HOME: C:\Python36
39   matrix:
40   - MINGW_HOME: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32
41     FREEGLUT_ARCHIVE: freeglut-MinGW-3.0.0-1.mp.zip
42     FREEGLUT_LIB: lib\libfreeglut.a
43   - MINGW_HOME: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64
44     FREEGLUT_ARCHIVE: freeglut-MinGW-3.0.0-1.mp.zip
45     FREEGLUT_LIB: lib\x64\libfreeglut.a
47 matrix:
48   fast_finish: true
50 install:
51 # Setup Python 3
52 - set Path=%PYTHON_HOME%;%PYTHON_HOME%\Scripts;%Path%
53 - pip --version
54 # Install Mako
55 - pip install Mako==1.0.6
56 # Install Numpy
57 - pip install numpy==1.12.1
58 # Check CMake
59 - cmake --version
60 # Install Ninja
61 - cinst -y ninja
62 - ninja --version
63 # Setup MinGW
64 - if not "%MINGW_HOME%"=="" set Path=%MINGW_HOME%\bin;%Path%
65 # Install FreeGlut
66 - if not exist "%FREEGLUT_ARCHIVE%" appveyor DownloadFile "http://files.transmissionzero.co.uk/software/development/GLUT/%FREEGLUT_ARCHIVE%"
67 - 7z x -y "%FREEGLUT_ARCHIVE%" > nul
68 # Get glext.h
69 - mkdir glext\GL
70 - appveyor DownloadFile https://www.khronos.org/registry/OpenGL/api/GL/glext.h -FileName glext\GL\glext.h
72 build_script:
73 - cmake -H. -Bbuild -G "Ninja" -DGLUT_INCLUDE_DIR=%CD%\freeglut\include -DGLUT_glut_LIBRARY_RELEASE=%CD%\freeglut\%FREEGLUT_LIB% -DGLEXT_INCLUDE_DIR=%CD%\glext
74 - ninja -C build
77 # It's possible to setup notification here, as described in
78 # http://www.appveyor.com/docs/notifications#appveyor-yml-configuration , but
79 # doing so would cause the notification settings to be replicated across all
80 # repos, which is most likely undesired.  So it's better to rely on the
81 # Appveyor global/project notification settings.