forked from dartsim/dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
87 lines (75 loc) · 1.89 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
language: cpp
sudo: required
dist: xenial
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
- BUILD_DARTPY=OFF
- CODECOV=OFF
matrix:
fast_finish: true
include:
- os: linux
env:
- BUILD_NAME=XENIAL_DEBUG_CODECOV
- SUDO=sudo
- BUILD_TYPE=Debug
- COMPILER=GCC
- CODECOV=ON
- os: linux
env:
- BUILD_NAME=BIONIC_RELEASE
- DOCKERFILE="Dockerfile.ubuntu-bionic"
- BUILD_TYPE=Release
- COMPILER=GCC
services: docker
- os: linux
env:
- BUILD_NAME=DISCO_RELEASE
- DOCKERFILE="Dockerfile.ubuntu-disco"
- BUILD_TYPE=Release
- COMPILER=GCC
services: docker
- os: osx
osx_image: xcode10.2
compiler: clang
env:
- BUILD_NAME=XCODE102_RELEASE
- BUILD_TYPE=Release
- COMPILER=CLANG
- os: linux
env:
- BUILD_DOCS=ON
- 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
deploy:
github-token: $GITHUB_TOKEN
provider: pages
skip-cleanup: true
local-dir: gh-pages
keep-history: false
verbose: true
on:
branch: master
condition: $BUILD_DOCS == ON && $TRAVIS_EVENT_TYPE != cron