2016-12-08 10:26:36 +00:00
|
|
|
language: cpp
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2017-02-15 07:03:24 +00:00
|
|
|
osx_image: xcode8.2
|
2016-12-08 10:26:36 +00:00
|
|
|
|
|
|
|
# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
|
2017-09-06 08:58:30 +00:00
|
|
|
# We check out glslang and SPIRV-Tools at specific revisions to avoid test output mismatches
|
2016-12-08 10:34:10 +00:00
|
|
|
env:
|
2018-01-09 11:59:20 +00:00
|
|
|
- GLSLANG_REV=9c6f8cc29ba303b43ccf36deea6bb38a304f9b92 SPIRV_TOOLS_REV=e28edd458b729da7bbfd51e375feb33103709e6f
|
2016-12-08 10:34:10 +00:00
|
|
|
|
2016-12-08 10:26:36 +00:00
|
|
|
before_script:
|
2017-10-10 14:38:56 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install python3; fi
|
2016-12-08 10:26:36 +00:00
|
|
|
- git clone https://github.com/KhronosGroup/glslang.git glslang
|
|
|
|
- git clone https://github.com/KhronosGroup/SPIRV-Tools SPIRV-Tools
|
|
|
|
- git clone https://github.com/KhronosGroup/SPIRV-Headers.git SPIRV-Tools/external/spirv-headers
|
|
|
|
|
|
|
|
script:
|
2016-12-08 10:34:10 +00:00
|
|
|
- git -C glslang checkout $GLSLANG_REV
|
2017-09-06 08:58:30 +00:00
|
|
|
- git -C SPIRV-Tools checkout $SPIRV_TOOLS_REV
|
2016-12-08 10:26:36 +00:00
|
|
|
- cd glslang && cmake . && make -j2 && cd ..
|
|
|
|
- cd SPIRV-Tools && cmake . && make -j2 && cd ..
|
|
|
|
- make -j2
|
2016-12-16 12:48:30 +00:00
|
|
|
- PATH=./glslang/StandAlone:./SPIRV-Tools/tools:$PATH
|
2016-12-08 10:26:36 +00:00
|
|
|
- ./test_shaders.py shaders
|
2017-03-25 15:30:46 +00:00
|
|
|
- ./test_shaders.py --msl shaders-msl
|
2017-01-26 09:00:24 +00:00
|
|
|
- ./test_shaders.py --hlsl shaders-hlsl
|
2017-11-21 09:15:13 +00:00
|
|
|
- ./test_shaders.py shaders --opt
|
|
|
|
- ./test_shaders.py --msl shaders-msl --opt
|
|
|
|
- ./test_shaders.py --hlsl shaders-hlsl --opt
|