-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (37 loc) · 1.94 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
sudo: required
services:
- docker
before_install:
- docker pull gcr.io/cpp-projects/cpp-ci:1
script:
- >
docker run -v `pwd`:/cpp-pcp-client gcr.io/cpp-projects/cpp-ci:1 /bin/bash -c "
wget https://github.com/puppetlabs/leatherman/releases/download/${LEATHERMAN_VERSION}/leatherman.tar.gz &&
tar xzvf leatherman.tar.gz --strip 1 -C / &&
cd /cpp-pcp-client &&
cmake $EXTRA_VARS . &&
mkdir dest &&
make $TARGET DESTDIR=/cpp-pcp-client/dest VERBOSE=1 -j2 &&
{ [[ '$COVERALLS' != 'ON' ]] || coveralls --gcov-options '\-lp' -r . -b . -e src -e vendor >/dev/null || true; }
"
- if [[ $DO_RELEASE = true ]]; then tar czvf cpp-pcp-client.tar.gz `find dest -type f -print`; fi
env:
global:
- LEATHERMAN_VERSION=1.4.0
matrix:
- TARGET=cpplint
- TARGET=cppcheck
- TARGET="all test install ARGS=-V" DO_RELEASE=true EXTRA_VARS="-DBOOST_STATIC=ON -DBUILD_SHARED_LIBS=OFF"
- TARGET="all test install ARGS=-V" EXTRA_VARS="-DBOOST_STATIC=ON -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=ON -DBUILD_SHARED_LIBS=OFF" COVERALLS=ON
deploy:
provider: releases
api_key:
secure: "RvRaZyPvBa3Ll/DrJGbCk41KS1mNBO+OaDNgJCJuqUdUT6PCuXd957oM2c2ZTHoINtyK96AWomza4P9OythlF1pNLIlT5xvv+PBkkoyVwPdu7pnPhPvauHdVXvLwpYf7GQCOcVDH0Cg8tP+CP7amqpCNgOxlQmn1nqHbTd+kKTUNmPZtLoN+noPIM4HvGAAOyx5zFQN+61yQkhQ8VQzP4j361Qud4fqgCkbr26JJvOAakj8XCer4AcqsWAEL32WVmpR59vLm6zo+R4BCsUVHmtiCKLOA2O/blxmS5qsRbRJdrA2aWOwbm+W6U5Qx7vLYn57a7m6C5c4MsH1+UOxytMETrzXKt0+AM1uHEbXkg2pGgj9I6bLFVFXHdt0bcl7e+jNR5YPU+YgguwqttTVOOadLi2qhB0UaW65QVILABMj6PMcPmqfYrXW0wAkIytJiGJuVkM7MuNzu8gWQkYU6W6sLVLJwRw0JejGhXdefGlVV5bTIxKxZBsmoQaIHkXMbCEmo+EFOkDbOw8o6Vo72FbS3LtnR9/MdnpXrBi0wzl+dyRG86WDva3XDloStELaDqyNpQg/WrAfZE6XRyuvtiFrZycsgIAShrDBghrCUDs5hY97jslM0t9imlzarPGH+ML4LQW3QiMmjR35XhsNvicdGZpKq7dOjBh1sUlGopG0="
file: cpp-pcp-client.tar.gz
skip_cleanup: true
on:
repo: puppetlabs/cpp-pcp-client
tags: true
condition: $DO_RELEASE = true
notifications:
email: false