-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 2.03 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
# ************************************************************************* #
# This file is part of Shard. #
# #
# Shard is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as #
# published by the Free Software Foundation. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Affero General Public License for more details. #
# #
# You should have received a copy of the GNU Affero General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# ************************************************************************* #
language: generic
sudo: required
dist: trusty
group: edge
services:
- docker
branches:
except:
- tokenizer-devel
- parser-devel
matrix:
include:
- compiler: gcc
env:
- CC=gcc-8
- CXX=g++-8
- PKG=g++-8
install:
- docker build -t shard --build-arg PKG=$PKG --build-arg CC=$CC --build-arg CXX=$CXX .
- mkdir -p ${TRAVIS_BUILD_DIR}/build
- docker run -v ${TRAVIS_BUILD_DIR}:/opt/shard -v ${TRAVIS_BUILD_DIR}/build:/opt/build shard cmake -DCMAKE_BUILD_TYPE=release -DSHARD_BUILD_TESTS=On "/opt/shard"
script:
- docker run -v ${TRAVIS_BUILD_DIR}:/opt/shard -v ${TRAVIS_BUILD_DIR}/build:/opt/build shard cmake --build .
- docker run -v ${TRAVIS_BUILD_DIR}:/opt/shard -v ${TRAVIS_BUILD_DIR}/build:/opt/build shard ctest --verbose
# ######################################################################### #