-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
51 lines (46 loc) · 1.2 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
sudo: required
dist: trusty
matrix:
include:
- os: linux
language: cpp
env:
- BUILD_NAME=TRUSTY_PYTHON_34
- SUDO=sudo
- PYTHON_VERSION=3.4
- os: linux
language: cpp
services: docker
env:
- BUILD_NAME=XENIAL_PYTHON_35
- DOCKER_FILE="ubuntu-xenial"
- PYTHON_VERSION=3.5
- os: linux
language: cpp
services: docker
env:
- BUILD_NAME=BIONIC_PYTHON_36
- DOCKER_FILE="ubuntu-bionic"
- PYTHON_VERSION=3.6
- os: osx
osx_image: xcode9.3
compiler: clang
env:
- BUILD_NAME=OSX_PYTHON_37
- PYTHON_VERSION=3.7
install:
- if [ -n "$DOCKER_FILE" ]; then
docker build -t "$DOCKER_FILE" -f ".ci/docker/$DOCKER_FILE" .;
docker run -itd -v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR --env-file .ci/docker/env.list --name dartpy-docker "$DOCKER_FILE";
else
'.ci/install.sh';
fi
script:
- if [ -n "$DOCKER_FILE" ]; then
docker exec dartpy-docker /bin/sh -c "cd $TRAVIS_BUILD_DIR && ./.ci/script.sh";
else
'.ci/script.sh';
fi
after_failure:
- cat Testing/Temporary/LastTest.log
- cat Testing/Temporary/LastTestsFailed.log