forked from simbody/simbody
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (26 loc) · 967 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: cpp
compiler:
- gcc
- clang
install:
- sudo apt-get update
- sudo apt-get install liblapack-dev liblas-dev
# from https://github.com/travis-ci/travis-ci/issues/979.
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
script:
- echo "CXX="$CXX
- echo "CC="$CC
# First, using c++03.
# Specify that we do not use 11, since
# the default for this variable may change soon.
- cmake . -DBUILD_EXAMPLES=ON -DBUILD_VISUALIZER=OFF -DSIMBODY_STANDARD_11=OFF -DCMAKE_CXX_FLAGS=-Werror
# Check which compiler and compiler version we're using.
- make -j8
- ctest -j8
# Then, test using c++11.
- if [ "$CXX" = "g++-4.8" ]; then cmake . -DSIMBODY_STANDARD_11=ON; fi
- if [ "$CXX" = "g++-4.8" ]; then make -j8; fi
- if [ "$CXX" = "g++-4.8" ]; then ctest -j8; fi