forked from jansvoboda11/gram
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (41 loc) · 883 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
29
30
31
32
33
34
35
36
37
38
39
40
41
language: cpp
dist: trusty
sudo: false
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
env:
- C_COMPILER=gcc-7
- CXX_COMPILER=g++-7
- CXX_FLAGS=""
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- libc++-dev
env:
- C_COMPILER=clang-4.0
- CXX_COMPILER=clang++-4.0
- CXX_FLAGS="-stdlib=libc++"
script:
- mkdir build
- cd build
- cmake ..
-DGRAM_BUILD_TESTS=ON
-DCMAKE_C_COMPILER=$C_COMPILER
-DCMAKE_CXX_COMPILER=$CXX_COMPILER
-DCMAKE_CXX_FLAGS=$CXX_FLAGS
- make
- ./test/unit/utest
- ./test/acceptance/atest