forked from AKEngels/CAST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (32 loc) · 2.82 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
language: cpp # C++ language
compiler: gcc # g++ compiler
dist: bionic # ubuntu distribution: 18.04 (Bionic Beaver)
script: # this is what is tested: commands that are also needed on a "normal" computer
- cd optional_files # go into folder optional_files
- premake5 gmake # run premake to create CAST makefile
- cd project # go into project folder
- make config=testing_x64 # create CAST testing configuration
- cd ../build # go into build folder
- ./CAST_linux_x64_testing # run CAST (testing configuration)
install:
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.13.orig.tar.gz # get lcov from debian sources
- tar xf lcov_1.13.orig.tar.gz # unpack lcov
- sudo make -C lcov-1.13/ install # install lcov
- gem install coveralls-lcov # install coveralls-lcov
- cd submodules/boost # go into boost folder
- ./bootstrap.sh # run bootstrap
- ./b2 headers # build boost headers
- cd ../.. # go back to main CAST folder
- wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha14/premake-5.0.0-alpha14-linux.tar.gz # get premake5 alpha
- tar xf premake-5.0.0-alpha14-linux.tar.gz # untar premake5
- sudo install premake5 /usr/local/bin # install premake5
after_success:
- cd ../project/obj/x64/Testing # go into folder with object files
- lcov --capture --directory . --output-file coverage.info # create coverage.info file
- lcov --remove coverage.info '/usr/*' --output-file coverage.info # remove standard library from coverage.info
- lcov --remove coverage.info '/home/travis/build/AKEngels/CAST/submodules/*' --output-file coverage.info # remove submodules
- lcov --remove coverage.info '/home/travis/build/AKEngels/CAST/src/Tests/*' --output-file coverage.info # remove sourcecode for tests
- lcov --list coverage.info # show coverage information in terminal
- coveralls-lcov coverage.info # send coverage information to coveralls.io
notifications:
email: false # don't send emails