-
Notifications
You must be signed in to change notification settings - Fork 117
/
Copy path.travis.yml
22 lines (17 loc) · 837 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
language: cpp
compiler: gcc
before_install:
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- sudo apt-get update -qq
install:
- if [ "$CXX" = "g++" ]; then export PACKAGES_TO_INSTALL="g++-4.8"; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
- export PACKAGES_TO_INSTALL="${PACKAGES_TO_INSTALL} lua5.2 liblua5.2-dev"
- export PACKAGES_TO_INSTALL="${PACKAGES_TO_INSTALL} valgrind"
- sudo apt-get install -qq ${PACKAGES_TO_INSTALL}
- sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/lib/liblua.so
env:
- BUILD_TYPE=Release
- BUILD_TYPE=Debug VALGRIND='valgrind --leak-check=full --error-exitcode=1'
script:
- mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DLUA_INCLUDE_DIR=/usr/include/lua5.2 && make && ${VALGRIND} ./test_runner