forked from puppetlabs/pxp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (56 loc) · 1.88 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
language: cpp
compiler:
- gcc
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
packages:
- gcc-4.8
- g++-4.8
- libboost-filesystem1.55-dev
- libboost-regex1.55-dev
- libboost-date-time1.55-dev
- libboost-thread1.55-dev
- libboost-log1.55-dev
- libboost-locale1.55-dev
- libboost-chrono1.55-dev
- libboost-random1.55-dev
before_install:
# Use a predefined install location; cppcheck requires the cfg location is defined at compile-time.
- mkdir -p $USERDIR
# grab a pre-built cmake 3.2.3
- wget https://s3.amazonaws.com/kylo-pl-bucket/cmake-3.2.3-Linux-x86_64.tar.gz
- tar xzvf cmake-3.2.3-Linux-x86_64.tar.gz --strip 1 -C $USERDIR
# Install pxp-agent's dependencies
- wget https://github.com/puppetlabs/leatherman/releases/download/${LEATHERMAN_VERSION}/leatherman.tar.gz
- tar xzvf leatherman.tar.gz -C $USERDIR
- wget https://github.com/puppetlabs/cpp-pcp-client/releases/download/${CPP_PCP_CLIENT_VERSION}/cpp-pcp-client.tar.gz
- tar xzvf cpp-pcp-client.tar.gz -C $USERDIR
- wget https://github.com/puppetlabs/cpp-hocon/releases/download/${CPPHOCON_VERSION}/cpp-hocon.tar.gz
- tar xzvf cpp-hocon.tar.gz -C $USERDIR
# For some reason this link is missing, need to fix it upstream.
- ln -s $USERDIR/lib/libcpp-pcp-client.so.1.5.4 $USERDIR/lib/libcpp-pcp-client.so
- rvm install 2.1.9
- export CC=gcc-4.8 CXX=g++-4.8
script:
- ./.travis_target.sh
env:
global:
- USERDIR=/tmp/userdir
- PYTHONUSERBASE=$USERDIR
- PATH=$USERDIR/bin:$PATH
- LD_LIBRARY_PATH=$USERDIR/lib:$LD_LIBRARY_PATH
- LEATHERMAN_VERSION=1.2.2
- CPP_PCP_CLIENT_VERSION=1.5.4
- CPPHOCON_VERSION=0.1.6
matrix:
- TRAVIS_TARGET=CPPLINT
- TRAVIS_TARGET=CPPCHECK
- TRAVIS_TARGET=RELEASE
- TRAVIS_TARGET=DEBUG
- TRAVIS_TARGET=MODULES
notifications:
email: false