-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
43 lines (35 loc) · 1.05 KB
/
.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
sudo: required
services:
- docker
go:
- 1.6
- 1.7
env:
global:
- DOCKER_IMAGE="devlucky/fakelink"
- DOCKER_TAG=$TRAVIS_JOB_ID
- DOCKER_COMPOSE_VERSION="1.8.1"
before_install:
# Install rocker
- GO15VENDOREXPERIMENT=1 go get github.com/grammarly/rocker
# Install 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:
- go get -u github.com/kardianos/govendor
- go get -u github.com/golang/lint/golint
- DOCKER_GO_VERSION=$TRAVIS_GO_VERSION bin/docker-build.sh
script:
- govendor fmt +local
- govendor vet +local
- govendor list -no-status +local | xargs -n1 golint
- bin/docker-run.sh "bash -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST" "bin/travis_test.sh"
deploy:
provider: script
on:
go: "1.7"
all_branches: true
script: bin/travis_deploy.sh