forked from potassco/clingo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (31 loc) · 1.05 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
# Use container-based distribution
sudo: false
language: c++
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- re2c
- liblua5.1-0-dev
- zsh
- os: osx
osx_image: xcode8
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install lua bison re2c scons; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link bison --force; fi
script:
- mkdir build
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo "CXX = 'clang++'" > build/debug.py; else echo "CXX = 'g++-5'" > build/debug.py; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo "CC = 'clang'" >> build/debug.py; else echo "CC = 'gcc-5'" >> build/debug.py; fi
- echo "CXXFLAGS = ['-std=c++11', '-O2', '-W', '-Wall']" >> build/debug.py
- echo "LINKFLAGS = ['-std=c++11']" >> build/debug.py
- scons -j3
- scons -j3 example cexample
- scons -j3 test