This repository has been archived by the owner on May 6, 2020. It is now read-only.
forked from heremaps/tin-terrain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
136 lines (133 loc) · 3.53 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
language: cpp
matrix:
include:
- name: "Linux clang debug"
os: linux
compiler:
- clang
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- cmake
- cmake-data
- clang-6.0
- libboost-all-dev
- build-essential
env:
- MATRIX_EVAL="CC=/usr/local/clang-5.0.0/bin/clang && CXX=/usr/local/clang-5.0.0/bin/clang++"
- BUILD_TYPE="Debug"
- BUILD_FLAGS=""
- CMAKE_FLAGS=""
- TEST_TASK="test"
- name: "Linux gcc debug"
os: linux
compiler:
- gcc
sudo: required
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- cmake
- cmake-data
- libboost-all-dev
- build-essential
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- BUILD_TYPE="Debug"
- BUILD_FLAGS=""
- CMAKE_FLAGS=""
- TEST_TASK="test"
- name: "Linux clang release"
os: linux
compiler:
- clang
sudo: required
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- cmake
- cmake-data
- clang-6.0
- libboost-all-dev
- build-essential
env:
- MATRIX_EVAL="CC=/usr/local/clang-5.0.0/bin/clang && CXX=/usr/local/clang-5.0.0/bin/clang++"
- BUILD_TYPE="Release"
- BUILD_FLAGS=""
- CMAKE_FLAGS=""
- TEST_TASK="test"
- name: "Linux gcc release"
os: linux
compiler:
- gcc
sudo: required
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- cmake
- cmake-data
- libboost-all-dev
- build-essential
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- BUILD_TYPE="Release"
- BUILD_FLAGS=""
- CMAKE_FLAGS='-DCMAKE_CXX_FLAGS_RELEASE="-O2"'
- TEST_TASK="test"
- name: clang-format
# install:
# - apt-cache search clang-format
addons:
apt:
sources:
- 'llvm-toolchain-trusty'
- 'ubuntu-toolchain-r-test'
packages:
- 'clang-format'
env:
- CLANG_FORMAT_BIN=clang-format
- TEST_TASK="format"
- name: "Build docker image"
services:
- docker
env:
- TEST_TASK="docker"
before_install:
- eval "$MATRIX_EVAL"
- sudo rm -vf /etc/apt/sources.list.d/*rabbit*
- sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
- sudo apt update
- sudo apt install libgdal-dev gdal-bin
script:
- if [ "$TEST_TASK" == "test" ];
then
mkdir build-cmake-release;
cd build-cmake-release;
cmake "$CMAKE_FLAGS" -DCMAKE_CXX_FLAGS="--std=c++11 $BUILD_FLAGS" -DTNTN_TEST=ON -DCMAKE_BUILD_TYPE="$BUILD_TYPE" ../.;
VERBOSE=1 make tin-terrain tntn-tests;
test/tntn-tests;
elif [ "$TEST_TASK" == "format" ];
then
./check-clang-format.sh;
elif [ "$TEST_TASK" == "docker" ];
then
./build-docker.sh;
fi