Skip to content

Commit

Permalink
Split checkout and build on Travis CI.
Browse files Browse the repository at this point in the history
Seems to be getting timeouts.
  • Loading branch information
HansKristian-Work committed Mar 12, 2018
1 parent 4979d10 commit 5a746ba
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ osx_image: xcode8.3
sudo: required
dist: trusty

# We check out glslang and SPIRV-Tools at specific revisions to avoid test output mismatches
env:
- PROFILE=plain

before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python3; fi
- ./checkout_glslang_spirv_tools.sh

script:
- ./checkout_glslang_spirv_tools.sh
- ./build_glslang_spirv_tools.sh
- make -j2
- ./test_shaders.sh
16 changes: 16 additions & 0 deletions build_glslang_spirv_tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

echo "Building glslang."
mkdir -p external/glslang-build
cd external/glslang-build
cmake ../glslang -DCMAKE_BUILD_TYPE=Release -G"Unix Makefiles"
make -j$(nproc)
cd ../..

echo "Building SPIRV-Tools."
mkdir -p external/spirv-tools-build
cd external/spirv-tools-build
cmake ../spirv-tools -DCMAKE_BUILD_TYPE=Release -G"Unix Makefiles"
make -j$(nproc)
cd ../..

14 changes: 0 additions & 14 deletions checkout_glslang_spirv_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ else
fi
cd ../..

echo "Building glslang."
mkdir -p external/glslang-build
cd external/glslang-build
cmake ../glslang -DCMAKE_BUILD_TYPE=Release -G"Unix Makefiles"
make -j$(nproc)
cd ../..

if [ -d external/spirv-tools ]; then
echo "Updating SPIRV-Tools to revision $SPIRV_TOOLS_REV."
cd external/spirv-tools
Expand All @@ -49,10 +42,3 @@ fi

cd ../..

echo "Building SPIRV-Tools."
mkdir -p external/spirv-tools-build
cd external/spirv-tools-build
cmake ../spirv-tools -DCMAKE_BUILD_TYPE=Release -G"Unix Makefiles"
make -j$(nproc)
cd ../..

0 comments on commit 5a746ba

Please sign in to comment.