-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
51 lines (46 loc) · 1.09 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
dist: trusty
sudo: required
language:
- cpp
- c
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-9
- g++-9
- cmake
before_install:
- sudo apt install doxygen graphviz -y
- sudo apt install valgrind -y
- make install-cmocka
script:
# Link gcc-9 and g++-9 to their standard commands
- sudo ln -s /usr/bin/gcc-9 /usr/local/bin/gcc
- sudo ln -s /usr/bin/g++-9 /usr/local/bin/g++
# Export CC and CXX to tell cmake which compiler to use
- export CC=/usr/bin/gcc-9
- export CXX=/usr/bin/g++-9
# Check versions of gcc, g++ and cmake
- gcc -v && g++ -v && cmake --version
# build project in release mode
- make build-ci
# change to builddir and run tests
- cd build && ctest --extra-verbose
# go back to parent directroy
- cd ..
before_deploy:
- make run-valgrind
deploy: # this is a hacky workaround as script provider is causing problems
skip_cleanup: true
provider: releases
script: .scripts/valgrind.sh
on:
branch: master
tags: true
repo: bonedaddy/ulog
notifications:
email: false