Break out dependency cache warming
@@ -22,12 +22,21 @@ env:
- GO15VENDOREXPERIMENT='1'
- REDIS_URL="redis://"
+stages:
+- cache-warm
+- test
+
jobs:
include:
- - stage: test
- name: "linux"
+ - stage: cache-warm
+ name: cache warm
script:
+ - git checkout -- vendor/
+ - make distclean
- travis_retry make deps
+ - stage: test
+ name: linux
+ script:
- make lintall
- make build
- mkdir -p build/linux/amd64
@@ -42,9 +51,8 @@ jobs:
- travis-ci/worker/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
- travis-ci/worker/$(git describe --always --dirty --tags)
- travis-ci/worker/$TRAVIS_BRANCH
- - name: "crossbuild"
+ - name: crossbuild
script:
- - travis_retry make deps
- make build/darwin/amd64/travis-worker
addons:
artifacts:
@@ -54,7 +62,7 @@ jobs:
- travis-ci/worker/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
- travis-ci/worker/$(git describe --always --dirty --tags)
- travis-ci/worker/$TRAVIS_BRANCH
- - name: "docker"
+ - name: docker
if: type != 'pull_request' && env(DOCKER_LOGIN_PASSWORD) is present && env(DOCKER_LOGIN_USERNAME) is present
script:
- make docker-build
@@ -66,9 +74,8 @@ jobs:
update: true
packages:
- docker-ce
- - name: "http-job-test"
+ - name: http-job-test
script:
- - travis_retry make deps
- make build
- mkdir -p build/linux/amd64
- cp $GOPATH/bin/travis-worker build/linux/amd64
