-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (34 loc) · 1.81 KB
/
.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
27
28
29
30
31
32
33
34
35
36
37
38
39
language: cpp
compiler:
# - clang
- gcc
# Setup different environments to test
env:
global:
- LIBSTDC_VERSION=4.8
- CLANG_VERSION=3.6
# Setup repos etc before installation
before_install:
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
- if [ "$CXX" == "clang++" ]; then echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise main" | sudo tee -a /etc/apt/sources.list; fi
- if [ "$CXX" == "clang++" ]; then echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-${CLANG_VERSION} main" | sudo tee -a /etc/apt/sources.list; fi
- if [ "$CXX" == "clang++" ]; then echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main" | sudo tee -a /etc/apt/sources.list; fi
- sudo apt-get update -qq
# Install dependencies
install:
- sudo apt-get -qq install build-essential
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-${LIBSTDC_VERSION}; fi
- if [ "$CC" == "gcc" ]; then sudo apt-get install -qq gcc-${LIBSTDC_VERSION}; fi
- if [ "$CXX" == "g++" ]; then sudo apt-get -qq --allow-unauthenticated install libstdc++-${LIBSTDC_VERSION}-dev; fi
- if [ "$CXX" == "g++" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${LIBSTDC_VERSION} 50; fi
- if [ "$CXX" == "g++" ]; then CXX=g++-${LIBSTDC_VERSION}; fi
- if [ "$CC" == "gcc" ]; then CC=gcc-${LIBSTDC_VERSION}; fi
- if [ "$CXX" == "clang++" ]; then sudo apt-get -qq --allow-unauthenticated install clang-${CLANG_VERSION}; fi
- if [ "$CXX" == "clang++" ]; then CXX=clang++-${CLANG_VERSION}; fi
- if [ "$CC" == "clang" ]; then CC=clang-${CLANG_VERSION}; fi
# command to run tests
script:
- cmake -DSlick_WITH_TEST_ON=TRUE ./
- make VERBOSE=1
- ctest -C debug