forked from SuperNEMO-DBD/Falaise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (52 loc) · 1.78 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
# All build envs are for C++
language: cpp
# Use matrix: to explicitly specify the builds
# - Linux: Singular VM with docker, one build for
# each different image
# - macOS: One each per osx_image value.
# Only latest w/clang for now.
matrix:
include:
- os: linux
services: docker
env:
- DOCKER_IMAGE=supernemo/falaise-ubuntu1604-base:develop
- DOCKER_CONTAINER=falaise-docker
- SCRIPT_PREFIX_CMD="docker exec $DOCKER_CONTAINER"
- os: linux
services: docker
env:
- DOCKER_IMAGE=supernemo/falaise-ubuntu1804-base:develop
- DOCKER_CONTAINER=falaise-docker
- SCRIPT_PREFIX_CMD="docker exec $DOCKER_CONTAINER"
- os: linux
services: docker
env:
- DOCKER_IMAGE=supernemo/falaise-centos7-base:develop
- DOCKER_CONTAINER=falaise-docker
- SCRIPT_PREFIX_CMD="docker exec $DOCKER_CONTAINER"
- os: osx
osx_image: xcode10.1
compiler: clang
# Mac doesn't work just yet due to missing bottles but want to confirm things run.
allow_failures:
- os: osx
# In a C++ project, no clear convention on before_install vs install
# (Travis doesn't do anything automatically). Use it to:
# - Linux: start the base container
# - macOS: install brew packages
before_install:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ] ; then
docker pull $DOCKER_IMAGE
docker run \
-itd \
-v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR \
--name $DOCKER_CONTAINER $DOCKER_IMAGE
elif [ "$TRAVIS_OS_NAME" == "osx" ] ; then
brew tap supernemo-dbd/cadfael
brew tap-pin supernemo-dbd/cadfael
brew install ninja
fi
# Run packaged script to configure, make, run tests
script: $SCRIPT_PREFIX_CMD $TRAVIS_BUILD_DIR/.travis/ciscript.sh