-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (35 loc) · 950 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
language: go
go:
- 1.8.1
branches:
only:
- master
sudo: required
dist: trusty
group: edge
services:
- docker
env:
global:
- DOCKER_COMPOSE_VERSION=1.12.0
before_install:
# update docker compose
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# install zest
- echo -e "machine github.com\n login $CI_USER_TOKEN" >> ~/.netrc
- git clone https://github.com/axiomzen/zest.git
- export PATH=$PATH:$PWD/zest/
before_script:
- docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
script:
- zest integrate
after_success:
- zest build && zest bundle
- docker images
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] ; then
docker push $DOCKER_IMAGE_NAME:latest;
docker push $DOCKER_IMAGE_NAME:$(zest version);
fi