forked from ahupowerdns/luawrapper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
28 lines (28 loc) · 831 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
27
28
language: cpp
compiler:
- gcc
- clang
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- echo "deb http://llvm.org/apt/quantal/ llvm-toolchain-quantal main" | sudo tee -a /etc/apt/sources.list
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get -qq update
- sudo apt-get install libboost-dev
- sudo apt-get install $LUA
- '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'
- mkdir build
- cd build
- $CXX --version
- cmake -DCMAKE_CXX_FLAGS="-Wall $CXX_FLAGS" ..
script:
- make
- ./tests
env:
- LUA="liblua5.1-dev"
- LUA="liblua5.2-dev"
- LUA="libluajit-5.1-dev"
matrix:
allow_failures:
- compiler: clang
- env: LUA="libluajit-5.1-dev"