build: make explicit which matrix items we will deploy

This commit is contained in:
Nick Craig-Wood 2019-07-02 14:02:58 +01:00
parent dcaee0016a
commit cf15b88efa

View File

@ -62,6 +62,7 @@ matrix:
- go: 1.12.x - go: 1.12.x
env: env:
- GOTAGS=cmount - GOTAGS=cmount
- DEPLOY=true
script: script:
- make build_dep - make build_dep
- make check - make check
@ -78,6 +79,7 @@ matrix:
go: 1.12.x go: 1.12.x
env: env:
- GOTAGS= # cmount doesn't work on osx travis for some reason - GOTAGS= # cmount doesn't work on osx travis for some reason
- DEPLOY=true
cache: cache:
directories: directories:
- $HOME/Library/Caches/go-build - $HOME/Library/Caches/go-build
@ -109,5 +111,4 @@ deploy:
on: on:
repo: ncw/rclone repo: ncw/rclone
all_branches: true all_branches: true
go: 1.12.x condition: $TRAVIS_PULL_REQUEST == false && $DEPLOY == true
condition: $TRAVIS_PULL_REQUEST == false && $TRAVIS_OS_NAME != "windows"