-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml.bk
44 lines (38 loc) · 1.26 KB
/
.travis.yml.bk
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
language: go
sudo: required
dist: trusty
go:
- tip
services:
- docker
before_install:
#- go get -u github.com/golang/dep/cmd/dep
#- sudo apt-get update
#- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
- docker-compose build
- docker-compose up -d mysql
- sleep 15
- docker-compose up -d webserver
#install:
# - $GOPATH/bin/dep ensure
before_script:
- sleep 30
- docker-compose logs
script:
- docker-compose exec webserver /bin/sh -c "go test -v ext/cmd/main_test.go -health 10"
after_script:
- docker-compose down
after_success:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
- docker push hirokiy/go-goa:1.0;
- docker login -u="$HEROKU_USERNAME" -p="$HEROKU_PASSWORD" registry.heroku.com;
#- docker build --no-cache -t registry.heroku.com/goa-web/web -f ./docker/Dockerfile.multistage.heroku .
- docker build --no-cache -t hirokiy/goapack_base:latest -f ./docker/Dockerfile.base.heroku .
- docker push hirokiy/goapack_base:latest;
- docker build --no-cache -t hirokiy/goapack:latest -f ./docker/Dockerfile.heroku .
- docker push hirokiy/goapack:latest;
- docker tag hirokiy/goapack:latest registry.heroku.com/goa-web/web
- docker push registry.heroku.com/goa-web/web;
branches:
only:
- master