forked from cloudprober/cloudprober
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (22 loc) · 782 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
matrix:
include:
- os: linux
dist: trusty
- os: osx
env: EXTRA_TEST_FLAGS="-tags skip_udp_probe_test"
language: go
go:
- "1.14"
install:
- go get -t ./...
script:
- go test ${EXTRA_TEST_FLAGS} -v -race -covermode=atomic ./...
go_import_path: github.com/cloudprober/cloudprober
services:
- docker
after_success:
- make cloudprober
- cp /etc/ssl/certs/ca-certificates.crt .
- test "$TRAVIS_BRANCH" = "master" && test "$TRAVIS_EVENT_TYPE" = "push" && DOCKER_VERSION=latest
- test -n "$TRAVIS_TAG" && DOCKER_VERSION=$TRAVIS_TAG
- test -n "$DOCKER_IMAGE" && test -n "$DOCKER_VERSION" && test "$TRAVIS_OS_NAME" = "linux" && DOCKER_VERSION=${DOCKER_VERSION} make docker_build && docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} && docker push ${DOCKER_IMAGE}