forked from CppMicroServices/CppMicroServices
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
106 lines (93 loc) · 3.79 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
sudo: false
language: cpp
env:
global:
- PATH=$HOME/cache/bin/:$PATH
- secure: "g2dT1rLVDXAR7uFkhgKlm7rUqCPHwl+o4CFSqEo5w9H/M5xuuQLP597J8qwhgkWutJABM4G4zLF9yzb5rTbUH1BSdGTzmdUkvJGvLOFq09xwLQP5PAKlq6s1dpVr7J9Ciy49cEVDD2leaikMf9zK3ty9Fv5F2mL3Itd6a/U5M5o="
# We do not test all build configurations with all compiler / platform
# combinations. For now, just the latest compilers being tested will
# run all build configurations.
matrix:
include:
- os: linux
addons: &valgrind
apt:
packages: valgrind
compiler: gcc
env: BUILD_CONFIGURATION=0 WITH_COVERAGE=1 BUILD_DIR="/tmp/cppmicroservices_builds"
- os: linux
addons: *valgrind
compiler: gcc
env: BUILD_CONFIGURATION=1 WITH_COVERAGE=1 BUILD_DIR="/tmp/cppmicroservices_builds"
- os: linux
addons: *valgrind
compiler: gcc
env: BUILD_CONFIGURATION=2 WITH_COVERAGE=1 BUILD_DIR="/tmp/cppmicroservices_builds"
- os: linux
addons: *valgrind
compiler: gcc
env: BUILD_CONFIGURATION=3 WITH_COVERAGE=1 BUILD_DIR="/tmp/cppmicroservices_builds"
# Run a build on Ubuntu 12.04 with gcc 4.6, using a shared multi-threaded configuration.
- os: linux
dist: precise
sudo: required
addons: *valgrind
compiler: gcc
env: BUILD_CONFIGURATION=0 BUILD_DIR="/tmp/cppmicroservices_builds_precise"
# minimum supported compiler on OS X
- os: osx
osx_image: xcode6.4
compiler: clang
env: BUILD_CONFIGURATION=0 MACOSX_DEPLOYMENT_TARGET=10.10
- os: osx
osx_image: xcode6.4
compiler: clang
env: BUILD_CONFIGURATION=1 MACOSX_DEPLOYMENT_TARGET=10.10
#- os: osx
# osx_image: xcode6.4
# compiler: clang
# env: BUILD_CONFIGURATION=2 MACOSX_DEPLOYMENT_TARGET=10.10
#- os: osx
# osx_image: xcode6.4
# compiler: clang
# env: BUILD_CONFIGURATION=3 MACOSX_DEPLOYMENT_TARGET=10.10
# latest compiler on OS X
- os: osx
osx_image: xcode9.3
compiler: clang
env: BUILD_CONFIGURATION=0 MACOSX_DEPLOYMENT_TARGET=10.13 WITH_COVERAGE=1 BUILD_DIR="/tmp/cppmicroservices_builds"
- os: osx
osx_image: xcode9.3
compiler: clang
env: BUILD_CONFIGURATION=1 MACOSX_DEPLOYMENT_TARGET=10.13 WITH_COVERAGE=1 BUILD_DIR="/tmp/cppmicroservices_builds"
- os: osx
osx_image: xcode9.3
compiler: clang
env: BUILD_CONFIGURATION=2 MACOSX_DEPLOYMENT_TARGET=10.13 WITH_COVERAGE=1 BUILD_DIR="/tmp/cppmicroservices_builds"
- os: osx
osx_image: xcode9.3
compiler: clang
env: BUILD_CONFIGURATION=3 MACOSX_DEPLOYMENT_TARGET=10.13 WITH_COVERAGE=1 BUILD_DIR="/tmp/cppmicroservices_builds"
cache:
directories:
- $HOME/cache
branches:
except:
- gh_pages
addons:
coverity_scan:
project:
name: CppMicroServices/CppMicroServices
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "mkdir us-cov; cd us-cov; cmake -DCMAKE_BUILD_TYPE:STRING=Release -DUS_BUILD_EXAMPLES:BOOL=ON -DUS_BUILD_TESTING:BOOL=ON -DUS_BUILD_SHARED_LIBS:BOOL=ON ../"
build_command: "make -j 4"
branch_pattern: coverity_scan
before_install:
- test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash install_cmake.sh ; fi
script:
- test $TRAVIS_BRANCH != coverity_scan || exit 0
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ctest -VV -S ./cmake/usCTestScript_travis.cmake ; fi
after_success:
- bash <(curl -s https://codecov.io/bash) -X gcov -s "/tmp/cppmicroservices_builds"