forked from honeycombio/honeycomb-opentracing-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (27 loc) · 1005 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
language: go
dist: trusty
sudo: true
services:
- docker
addons:
artifacts:
debug: true
paths:
- $GOPATH/bin
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
script:
- go test ./...
- go vet ./...
after_success:
- set -e
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
docker build -t honeycombio/honeycomb-opentracing-proxy:latest .;
docker tag honeycombio/honeycomb-opentracing-proxy:latest honeycombio/honeycomb-opentracing-proxy:1.${TRAVIS_BUILD_NUMBER};
docker tag honeycombio/honeycomb-opentracing-proxy:latest honeycombio/honeycomb-opentracing-proxy:head;
docker push honeycombio/honeycomb-opentracing-proxy:latest;
docker push honeycombio/honeycomb-opentracing-proxy:1.${TRAVIS_BUILD_NUMBER};
docker push honeycombio/honeycomb-opentracing-proxy:head;
fi