forked from dartsim/dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
98 lines (89 loc) · 2.33 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
language: cpp
sudo: required
dist: trusty
cache:
apt: true
env:
global:
- REPO_SLUG=$TRAVIS_REPO_SLUG
- IS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
- OS_NAME=$TRAVIS_OS_NAME
- BUILD_DIR=$TRAVIS_BUILD_DIR
matrix:
include:
- os: linux
env:
- BUILD_NAME=XENIAL_RELEASE
- DOCKERFILE="Dockerfile.ubuntu-xenial"
- BUILD_TYPE=Release
- COMPILER=GCC
services: docker
- os: linux
env:
- BUILD_NAME=BIONIC_DEBUG
- DOCKERFILE="Dockerfile.ubuntu-bionic"
- BUILD_TYPE=Debug
- COMPILER=GCC
services: docker
- os: linux
env:
- BUILD_NAME=BIONIC_RELEASE
- DOCKERFILE="Dockerfile.ubuntu-bionic"
- BUILD_TYPE=Release
- COMPILER=GCC
services: docker
- os: linux
env:
- BUILD_NAME=COSMIC_RELEASE
- DOCKERFILE="Dockerfile.ubuntu-cosmic"
- BUILD_TYPE=Release
- COMPILER=GCC
services: docker
# - os: osx
# osx_image: xcode9.4
# compiler: clang
# env:
# - BUILD_NAME=XCODE94_DEBUG
# - BUILD_TYPE=Debug
# - COMPILER=CLANG
# - os: osx
# osx_image: xcode9.4
# compiler: clang
# env:
# - BUILD_NAME=XCODE94_RELEASE
# - BUILD_TYPE=Release
# - COMPILER=CLANG
- os: linux
env:
- BUILD_NAME=DOCS
- DOCKERFILE="Dockerfile.ubuntu-bionic"
- BUILD_TYPE=Release
- COMPILER=GCC
services: docker
install:
- if [ -n "$DOCKERFILE" ]; then
docker build -t "${DOCKERFILE,,}" -f ".ci/docker/$DOCKERFILE" .;
docker run -itd -v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR --env-file .ci/docker/env.list --name dart-docker "${DOCKERFILE,,}";
docker exec dart-docker /bin/sh -c "cd $TRAVIS_BUILD_DIR && ./.ci/install.sh";
else
'.ci/install.sh';
fi
script:
- if [ -n "$DOCKERFILE" ]; then
docker exec dart-docker /bin/sh -c "cd $TRAVIS_BUILD_DIR && ./.ci/script.sh";
else
'.ci/script.sh';
fi
after_failure:
- cat build/Testing/Temporary/LastTest.log
- cat build/Testing/Temporary/LastTestsFailed.log
deploy:
github-token: $GITHUB_TOKEN
provider: pages
skip-cleanup: true
local-dir: gh-pages
keep-history: false
verbose: true
on:
branch: master
condition: $BUILD_NAME == DOCS && $TRAVIS_EVENT_TYPE != cron