-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
67 lines (59 loc) · 1.65 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
57
58
59
60
61
62
63
64
65
66
67
dist: trusty
sudo: require
language: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- cmake
- valgrind
- cppcheck
- doxygen
- graphviz
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- cd ${TRAVIS_BUILD_DIR}
- chmod +x deploy.sh
- ./deploy.sh
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
- tar xf lcov_1.11.orig.tar.gz
- sudo make -C lcov-1.11/ install
- gem install coveralls-lcov
- lcov --version
- g++ --version
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- sudo apt-get install -y nodejs
- sudo npm install -g [email protected] --unsafe-perm
before_script:
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory . --zerocounters
- chmod +x wmake
script:
- cd ${TRAVIS_BUILD_DIR}
# Check versions of gcc, g++ and cmake
- gcc -v && g++ -v && cmake --version
# Compile project and run tests
- cd wlib-stl
- wio update pkg .
- wio pac get
- cd ..
- ./wmake build
- ./wmake test
# Run static code analyzer
- cppcheck lib
# Run valgrind to detect memory bugs
- valgrind --leak-check=full --error-exitcode=2 ./bin/tests/tests
after_success:
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory . --capture --output-file coverage.info
- lcov --remove coverage.info 'tests/*' '/include/*' 'examples/*' --output-file coverage.info
- lcov --list coverage.info
- coveralls-lcov coverage.info
env:
global:
- ENCRYPTION_LABEL: "0b154c48edef"
- COMMIT_AUTHOR_EMAIL: "[email protected]"