forked from puppetlabs/facter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (29 loc) · 1.07 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
sudo: required
services:
- docker
before_install:
- docker pull gcr.io/cpp-projects/cpp-ci:1
script:
- >
docker run -v `pwd`:/facter gcr.io/cpp-projects/cpp-ci:1 /bin/bash -c "
wget https://github.com/puppetlabs/leatherman/releases/download/${LEATHERMAN_VERSION}/leatherman-dynamic.tar.gz &&
tar xzvf leatherman-dynamic.tar.gz --strip 1 -C / &&
wget https://github.com/puppetlabs/cpp-hocon/releases/download/${CPPHOCON_VERSION}/cpp-hocon-dynamic.tar.gz &&
tar xzvf cpp-hocon-dynamic.tar.gz --strip 1 -C / &&
cd /facter &&
cmake $EXTRA_VARS . &&
mkdir dest &&
make $TARGET DESTDIR=/facter/dest VERBOSE=1 -j2 &&
{ [[ '$COVERALLS' != 'ON' ]] || coveralls --gcov-options '\-lp' -r . -b . -e src -e vendor >/dev/null || true; }
"
env:
global:
- LEATHERMAN_VERSION=1.4.4
- CPPHOCON_VERSION=0.1.8
matrix:
- TARGET=cpplint
- TARGET=cppcheck
- TARGET="all test install ARGS=-V" EXTRA_VARS=""
- TARGET="all test install ARGS=-V" EXTRA_VARS="-DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=ON" COVERALLS=ON
notifications:
email: false