forked from travis-ci/worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (41 loc) · 1.06 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
44
language: go
go: 1.10.x
sudo: required
dist: trusty
group: edge
services:
- rabbitmq
- docker
- redis
env:
global:
- AMQP_URI="amqp://"
- GOPATH="$HOME/gopath"
- PATH="bin:$HOME/gopath/bin:$HOME/bin:$PATH"
- CHECKOUT_ROOT="$HOME/gopath/src/github.com/travis-ci/worker"
- GO15VENDOREXPERIMENT='1'
- REDIS_URL="redis://"
script:
- travis_retry make deps
- make lintall
- make test
- make crossbuild
- make http-job-test
- make smoke
- if [[ $TRAVIS_PULL_REQUEST = 'false' && $DOCKER_LOGIN_PASSWORD && $DOCKER_LOGIN_USERNAME ]]; then
sudo apt-get update;
sudo apt-get -y install docker-ce;
make docker-build smoke-docker docker-push;
fi
- echo "TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST}"
- echo "TRAVIS_BRANCH=${TRAVIS_BRANCH}"
- make send-docker-hub-trigger
addons:
artifacts:
paths:
- ./build/linux/amd64/travis-worker
- ./build/darwin/amd64/travis-worker
target_paths:
- travis-ci/worker/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
- travis-ci/worker/$(git describe --always --dirty --tags)
- travis-ci/worker/$TRAVIS_BRANCH