forked from MayfieldRoboticsPublic/kuri_edu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (35 loc) · 1.1 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
sudo: required
services:
- docker
branches:
only:
- master
env:
global:
- DOCKER_IMAGE="mayfieldrobotics/gizmo_base"
notifications:
email:
recipients:
on_success: change
on_failure: change
before_install:
# https://github.com/travis-ci/travis-ci/issues/5326
- export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
install:
- sudo pip install flake8
- docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
- docker pull ${DOCKER_IMAGE}:${TRAVIS_BRANCH} || exit 1
before_script:
- flake8 .
script:
# We're forcing TRAVIS_BRANCH=develop below because unlike any of the private repos,
# this repo doesn't have a 'develop' integration branch. A master binary is a bit too
# far behind to get this to build, so we're going to force it to use develop bins
- |
docker run --rm \
-e CONTINUOUS_INTEGRATION=${CONTINUOUS_INTEGRATION} \
-e TRAVIS_BRANCH=develop \
-v ${TRAVIS_BUILD_DIR}:/root/kuri_edu \
${DOCKER_IMAGE}:${TRAVIS_BRANCH} \
/root/kuri_edu/ci_tools/ci.bash