Skip to content

Commit

Permalink
Travis CI: use make to build and stop require clang 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
antiagainst committed Oct 12, 2017
1 parent e089609 commit 86d7785
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,9 @@ branches:
addons:
apt:
packages:
- clang-3.6
- ninja-build
- lcov

before_install:
# Install ninja on macOS.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja; fi
- if [[ "$BUILD_NDK" == "ON" ]]; then
git clone --depth=1 https://github.com/urho3d/android-ndk.git $HOME/android-ndk;
export ANDROID_NDK=$HOME/android-ndk;
Expand All @@ -62,10 +58,6 @@ install:
- pip install --user cpp-coveralls

- export PATH=$HOME/.local/bin:$PATH # Make sure we can find the above Python packages
# Make sure that clang-3.6 is selected.
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "clang" ]]; then
export CC=clang-3.6 CXX=clang++-3.6;
fi

before_script:
- git clone --depth=1 https://github.com/google/googletest third_party/googletest
Expand All @@ -80,19 +72,17 @@ script:
-DANDROID_NATIVE_API_LEVEL=android-9
-DCMAKE_BUILD_TYPE=Release
-DANDROID_ABI="armeabi-v7a with NEON"
-DSHADERC_SKIP_TESTS=ON
-GNinja ..;
-DSHADERC_SKIP_TESTS=ON ..;
else
cmake -DCMAKE_BUILD_TYPE=${SHADERC_BUILD_TYPE:-Debug}
-DENABLE_CODE_COVERAGE=${SHADERC_CODE_COVERAGE:-OFF}
-GNinja ..;
-DENABLE_CODE_COVERAGE=${SHADERC_CODE_COVERAGE:-OFF} ..;
fi
- ninja
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export NPROC=`nproc`;
else
export NPROC=`sysctl -n hw.ncpu`;
fi
- make -j${NPROC}
- if [[ "$BUILD_NDK" != "ON" ]]; then ctest -j${NPROC} --output-on-failure; fi

after_success:
Expand Down

0 comments on commit 86d7785

Please sign in to comment.