-
Notifications
You must be signed in to change notification settings - Fork 71
/
.travis.yml
92 lines (83 loc) · 2.16 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
language: cpp
env:
global:
- CMAKE_OPTIONS="-DOPTION_BUILD_EXAMPLES=On"
matrix:
include:
- os: linux
compiler: clang
env: CMAKE_CONFIGURATION=release BUILD_DIR=build
addons:
apt:
sources:
- sourceline: 'ppa:cginternals/backports-ppa'
packages:
- libssh2-1-dev
- lib64z1-dev
- libssl-dev
- cppcheck
- clang-tidy-3.8
- libcppassist-dev
- os: linux
compiler: clang
env: CMAKE_CONFIGURATION=debug BUILD_DIR=build-debug
addons:
apt:
sources:
- sourceline: 'ppa:cginternals/backports-ppa'
packages:
- libssh2-1-dev
- lib64z1-dev
- libssl-dev
- cppcheck
- clang-tidy-3.8
- libcppassist-dev
- os: linux
compiler: gcc
env:
- CMAKE_CONFIGURATION=release BUILD_DIR=build
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:cginternals/backports-ppa'
packages:
- cmake
- g++-5
- libssh2-1-dev
- lib64z1-dev
- libssl-dev
- cppcheck
- clang-tidy-3.8
- libcppassist-dev
- os: linux
compiler: gcc
env:
- CMAKE_CONFIGURATION=debug BUILD_DIR=build-debug
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:cginternals/backports-ppa'
packages:
- cmake
- g++-5
- libssh2-1-dev
- lib64z1-dev
- libssl-dev
- cppcheck
- clang-tidy-3.8
- libcppassist-dev
before_install:
- if [ $TRAVIS_OS_NAME == linux ]; then export CMAKE_OPTIONS="$CMAKE_OPTIONS"; fi
- if [ $TRAVIS_OS_NAME == linux ]; then echo "CMAKE_OPTIONS = $CMAKE_OPTIONS"; fi
before_script:
- eval "${MATRIX_EVAL}"
- chmod +x ./configure
- ./configure
- ./configure $CMAKE_CONFIGURATION
script:
- cmake --build $BUILD_DIR
- cmake --build $BUILD_DIR --target test