forked from lubgr/tsym
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (47 loc) · 1.24 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: cpp
dist: trusty
sudo: required
branches:
only:
- develop
git:
depth: 3
before_install:
- wget https://github.com/cpputest/cpputest/releases/download/v3.8/cpputest-3.8.tar.gz
- tar xf cpputest-3.8.tar.gz
- cd ./cpputest-3.8
- CC=gcc-6 CXX=g++-6 ./configure --enable-std-cpp11 --prefix=/usr --disable-memory-leak-detection
- make
- sudo make install
- cd ..
- git clone https://github.com/lubgr/plic
- cd plic
- scons CXX=g++-6 PYVERSION=3.4m
- sudo scons install CXX=g++-6 PYVERSION=3.4m PREFIX=/usr/
- cd ..
- gem install coveralls-lcov
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- g++-6
- lcov
matrix:
include:
- os: linux
compiler: gcc
env: COMPILER=g++-5
- os: linux
compiler: gcc
env: COMPILER=g++-6
script:
- scons CXX=$COMPILER COVERAGE=1 LIBS='-lCppUTest -ltsym -lplic -lpython3.4m -lgmp' lib
- cat build/src/buildinfo.h
- scons CXX=$COMPILER COVERAGE=1 LIBS='-lCppUTest -ltsym -lplic -lpython3.4m -lgmp' test
- ./build/runtests
after_success:
- lcov -c --no-external -d build/src -o build/coverage.info
- sed -i 's/\(^SF:.*\)build\/src/\1src/' build/coverage.info
- coveralls-lcov build/coverage.info