Specify services per stage
to ensure routing to container, I hope :sweat_smile:
@@ -3,11 +3,6 @@ go: 1.8.3
dist: trusty
group: edge
-services:
-- rabbitmq
-- docker
-- redis
-
env:
global:
- AMQP_URI="amqp://"
@@ -23,6 +18,9 @@ jobs:
include:
- stage: Build and Test
sudo: false
+ services:
+ - rabbitmq
+ - redis
install:
- go get -u github.com/alecthomas/gometalinter
- gometalinter --install
@@ -46,6 +44,10 @@ jobs:
- travis-ci/worker/$(git describe --always --dirty --tags)
- travis-ci/worker/$TRAVIS_BRANCH
- stage: Build and Push Docker Image
+ services:
+ - rabbitmq
+ - docker
+ - redis
script:
- if [[ $TRAVIS_PULL_REQUEST = 'false' && $DOCKER_LOGIN_PASSWORD && $DOCKER_LOGIN_USERNAME ]]; then
go get github.com/FiloSottile/gvt;
@@ -59,6 +61,10 @@ jobs:
- echo "TRAVIS_BRANCH=${TRAVIS_BRANCH}"
- make send-docker-hub-trigger
- stage: Build and Test Packages
+ services:
+ - rabbitmq
+ - docker
+ - redis
script:
- if [[ $TRAVIS_PULL_REQUEST = 'false' && $PACKAGECLOUD_TOKEN ]]; then
go get github.com/FiloSottile/gvt;
