-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
42 lines (32 loc) · 887 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
42
language: go
go: 1.10.x
# magic word to use faster/newer container-based architecture
sudo: false
services:
- docker
before_install:
- go get -u github.com/golang/lint/golint
- go get -u github.com/jteeuwen/go-bindata/...
script:
- go generate
- make test
- make vet
# Build and test the Docker image. It's pushed to Docker Hub as part of the
# deploy phase.
- docker build -t "$DOCKER_REPO" .
- docker run -d --name finance-mock-container -p 12111:12111 "$DOCKER_REPO"
- docker ps -a
deploy:
provider: script
script: bash scripts/docker_push.sh
on:
# Note that currently on the `master` branch is pushed to Docker Hub. We
# may want to do tagged releases as well if this ends up being something
# that people use.
branch: master
notifications:
email:
on_success: never
env:
global:
- DOCKER_REPO="piquette/finance-mock"