language: cpp
os:
  - linux
  - osx
osx_image: xcode8.2

# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
sudo: required
dist: trusty

# We check out glslang at a specific revision to avoid test output mismatches
env:
  - GLSLANG_REV=e4e8f7b7a31a751be285b64741465b769f5f146f

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:
  - git -C glslang checkout $GLSLANG_REV
  - cd glslang && cmake . && make -j2 && cd ..
  - cd SPIRV-Tools && cmake . && make -j2 && cd ..
  - make -j2
  - PATH=./glslang/StandAlone:./SPIRV-Tools/tools:$PATH
  - ./test_shaders.py shaders
  - ./test_shaders.py --metal shaders-msl
  - ./test_shaders.py --hlsl shaders-hlsl

language: cpp
os:
  - linux
  - osx
osx_image: xcode8.2

# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
sudo: required
dist: trusty

# We check out glslang at a specific revision to avoid test output mismatches
env:
  - GLSLANG_REV=19ea56899cdcab0f480d257fcea100ad2160e833

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:
  - git -C glslang checkout $GLSLANG_REV
  - cd glslang && cmake . && make -j2 && cd ..
  - cd SPIRV-Tools && cmake . && make -j2 && cd ..
  - make -j2
  - PATH=./glslang/StandAlone:./SPIRV-Tools/tools:$PATH
  - ./test_shaders.py shaders
  - ./test_shaders.py --metal shaders-msl
  - ./test_shaders.py --hlsl shaders-hlsl

Update Travis glslang revision to latest.
Update Travis glslang revision to latest.
