forked from VOLTTRON/volttron-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 1004 Bytes
/
.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
# make use of vm's
sudo: 'required'
language: java
jdk:
- oraclejdk8
# have the docker service set up (we'll
# update it later)
services:
- 'docker'
# prepare the machine before any code
# installation scripts
before_install:
- './.travis/main.sh'
#install:
# - python2 bootstrap.py
# Installs testing toolkit
#- python2 bootstrap.py --crate
# - python2 bootstrap.py --testing
script:
#- 'ci-integration/run-tests.sh'
- './.travis/build-docker.sh -b'
# only execute the following instructions in
# the case of a success (failing at this point
# won't mark the build as a failure).
# To have `DOCKER_USERNAME` and `DOCKER_PASSWORD`
# filled you need to either use `travis`' cli
# and then `travis set ..` or go to the travis
# page of your repository and then change the
# environment in the settings pannel.
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD ;
./.travis/build-docker.sh -p ;
fi