mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-12 03:28:58 +08:00
Remove sudo and hopefully allow container based testing.
This commit is contained in:
parent
7c0bdaaa73
commit
379934430a
21
.travis.yml
21
.travis.yml
@ -1,8 +1,9 @@
|
|||||||
os: linux
|
os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
sudo: require
|
|
||||||
language: cpp
|
language: cpp
|
||||||
compiler: gcc
|
compiler:
|
||||||
|
- clang
|
||||||
|
- gcc
|
||||||
cache: ccache
|
cache: ccache
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
@ -10,20 +11,16 @@ addons:
|
|||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- gcc-6
|
|
||||||
- g++-6
|
|
||||||
- ccache
|
- ccache
|
||||||
- cmake
|
- cmake
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Link gcc-6 and g++-6 to their standard commands
|
# Output versions of gcc, g++ and cmake
|
||||||
- ln -s /usr/bin/gcc-6 /usr/local/bin/gcc
|
- clang -v
|
||||||
- ln -s /usr/bin/g++-6 /usr/local/bin/g++
|
- clang++ -v
|
||||||
# Export CC and CXX to tell cmake which compiler to use
|
- gcc -v
|
||||||
- export CC=/usr/bin/gcc-6
|
- g++ -v
|
||||||
- export CXX=/usr/bin/g++-6
|
- make --version
|
||||||
# Check versions of gcc, g++ and cmake
|
|
||||||
- gcc -v && g++ -v && cmake --version
|
|
||||||
# Configure and build
|
# Configure and build
|
||||||
- mkdir _travis_build && cd _travis_build
|
- mkdir _travis_build && cd _travis_build
|
||||||
- cmake -G "Unix Makefiles" -DENABLE_TESTING=ON -DENABLE_CCACHE=ON ..
|
- cmake -G "Unix Makefiles" -DENABLE_TESTING=ON -DENABLE_CCACHE=ON ..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user