-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
90 lines (78 loc) · 1.93 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
language: cpp
# Use the Travis docker infrastructure.
sudo: false
# Build with both gcc and clang.
compiler:
- gcc
- clang
# Build with both Linux and OS X.
os:
- linux
# - osx
before_install:
- rvm install ruby-2.2.0
- gem update --system 2.2.0
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
# If the environment variable GENERATE_COVERAGE is set to ON then install
# cpp-coverals, a Python package from pypi.org that makes runs gcov and
# uploads results to coveralls.io.
- if [ "$GENERATE_COVERAGE" == "ON" ]; then
pip install --user cpp-coveralls;
fi
script:
# Run the actually build and test command
- ./project deb
after_success:
# If the environment variable GENERATE_COVERAGE is set to ON then run
# coveralls command from the cpp-coveralls Python package.
- if [ "$GENERATE_COVERAGE" == "ON" ]; then
coveralls
--include 'gallocy'
--include 'gallocy/include'
--exclude-pattern '.+/external/'
--gcov-options '\--long-file-names --preserve-paths'
--gcov /usr/bin/gcov-4.8
--verbose;
fi
- echo "DONE!"
- ./project deb
matrix:
include:
- os: linux
compiler: gcc
env: GENERATE_COVERAGE=ON
# exclude:
# # Only check clang on OS X
# - os: osx
# compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- clang
- g++-4.8
- gcc-4.8
- lcov
- python-pip
#deploy:
# provider: s3
# access_key_id: $GALLOCY_S3_KEY_ID
# secret_access_key: $GALLOCY_S3_KEY
# bucket: "gallocy"
# skip_cleanup: true
# local_dir: build
before_deploy:
- gem install deb-s3
- echo "$PATH"
- which deb-s3
deploy:
provider: script
skip_cleanup: true
script: /home/travis/.rvm/gems/ruby-2.2.0/bin/deb-s3
upload
--bucket gallocy
--access-key-id $GALLOCY_S3_KEY_ID
--secret-access-key $GALLOCY_S3_KEY
build/*.deb