2016-12-08 10:26:36 +00:00
|
|
|
language: cpp
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
|
2016-12-08 10:34:10 +00:00
|
|
|
# We check out glslang at a specific revision to avoid test output mismatches
|
|
|
|
env:
|
2017-02-11 09:52:34 +00:00
|
|
|
- GLSLANG_REV=e4e8f7b7a31a751be285b64741465b769f5f146f
|
2016-12-08 10:34:10 +00:00
|
|
|
|
2016-12-08 10:26:36 +00:00
|
|
|
before_script:
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi
|
|
|
|
- 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
|
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-02-05 10:04:45 +00:00
|
|
|
- ./test_shaders.py --metal shaders-msl --force-no-external-validation
|
2017-01-26 09:00:24 +00:00
|
|
|
- ./test_shaders.py --hlsl shaders-hlsl
|