forked from sagikazarmark/modern-go-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (35 loc) · 791 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
43
language: go
dist: xenial
services:
- docker
go:
- 1.11.x
- tip
branches:
only:
- master
- /^v?\d+\.\d+\.\d+(-\S*)?$/
matrix:
fast_finish: true
allow_failures:
- go: tip
before_script:
- make vendor
- export VERSION=${TRAVIS_TAG:-$TRAVIS_BRANCH}
- export $(make varexport-DOCKER_IMAGE)
script:
- make test
- make test-integration
- make lint
- if [[ $VERSION = "master" ]]; then export DOCKER_LATEST=1; fi
- make docker
- make docker-debug
#before_deploy: docker login -u $DOCKER_USER -p $DOCKER_PASS
#
#deploy:
# provider: script
# skip_cleanup: true
# script: docker push $DOCKER_IMAGE
# on:
# all_branches: true
# condition: $TRAVIS_GO_VERSION =~ ^1\.11(\.(x|[0-9]+))?$