mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-11 15:29:02 +08:00
Use g++4.9 for Travis GCC builds.
Really this time. Previous commit installed the package, but did not change compilers. This commit also caps the Travis-CI make jobs at 10 to avoid OOM related internal compiler errors in GCC builds.
This commit is contained in:
parent
c5beef82a0
commit
e75a6a47e2
14
.travis.yml
14
.travis.yml
@ -8,6 +8,14 @@ matrix:
|
||||
- os: linux
|
||||
dist: trusty
|
||||
compiler: gcc
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-4.9
|
||||
env:
|
||||
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
|
||||
- os: osx
|
||||
osx_image: xcode8.3
|
||||
compiler: clang
|
||||
@ -19,11 +27,13 @@ addons:
|
||||
packages:
|
||||
- ccache
|
||||
- cmake
|
||||
- g++-4.9
|
||||
|
||||
before_install:
|
||||
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then brew update; fi
|
||||
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then brew install ccache; fi
|
||||
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]] && [[ "${CXX}" = "g++" ]]; then
|
||||
export CXX="g++-4.9" CC="gcc-4.9";
|
||||
fi
|
||||
|
||||
script:
|
||||
# Output version info for compilers, cmake, and make
|
||||
@ -36,5 +46,5 @@ script:
|
||||
# Configure and build
|
||||
- mkdir _travis_build && cd _travis_build
|
||||
- cmake -G "Unix Makefiles" -DENABLE_TESTS=ON -DENABLE_CCACHE=ON ..
|
||||
- make -j
|
||||
- make -j10
|
||||
- ./draco_tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user