-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (38 loc) · 908 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
dist: bionic
sudo: required
language:
- c
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
before_install:
- sudo apt-get install cppcheck
script:
# Check versions
- cppcheck --version
# Setup standard build
- cp cfe/cmake/Makefile.sample Makefile
- cp -r cfe/cmake/sample_defs sample_defs
# Static code analysis
# Below is intent but fails - exit code bug in cppcheck 1.82
# - cppcheck --force --inline-suppr --quiet --error-exitcode=1 .
# Work around script:
- cppcheck --force --inline-suppr --quiet . 2> cppcheck_err.txt
- |
if [[ -s cppcheck_err.txt ]]; then
echo "You must fix cppcheck errors before submitting a pull request"
echo ""
cat cppcheck_err.txt
exit -1
fi
# Prep and build
- make prep
- make
- make install
# List cpu1 for core binary
- ls build/exe/cpu1/