2019-01-24 12:14:37 +01:00
|
|
|
---
|
2014-06-26 19:23:54 +02:00
|
|
|
language: go
|
2017-11-14 13:53:46 +01:00
|
|
|
sudo: required
|
2019-04-10 16:22:21 +02:00
|
|
|
dist: xenial
|
2015-11-03 13:50:29 +01:00
|
|
|
os:
|
2019-01-24 12:14:37 +01:00
|
|
|
- linux
|
2019-07-28 19:47:38 +02:00
|
|
|
go_import_path: github.com/rclone/rclone
|
2017-11-14 13:53:46 +01:00
|
|
|
before_install:
|
2019-01-24 12:14:37 +01:00
|
|
|
- git fetch --unshallow --tags
|
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
sudo modprobe fuse
|
|
|
|
sudo chmod 666 /dev/fuse
|
|
|
|
sudo chown root:$USER /etc/fuse.conf
|
|
|
|
fi
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew update
|
|
|
|
brew tap caskroom/cask
|
|
|
|
brew cask install osxfuse
|
|
|
|
fi
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
|
|
|
|
choco install -y winfsp zip make
|
|
|
|
cd ../.. # fix crlf in git checkout
|
|
|
|
mv $TRAVIS_REPO_SLUG _old
|
|
|
|
git config --global core.autocrlf false
|
|
|
|
git clone _old $TRAVIS_REPO_SLUG
|
|
|
|
cd $TRAVIS_REPO_SLUG
|
|
|
|
fi
|
2015-11-03 13:50:29 +01:00
|
|
|
install:
|
2019-01-24 12:14:37 +01:00
|
|
|
- make vars
|
2016-10-04 18:10:20 +02:00
|
|
|
env:
|
2017-05-19 16:46:13 +02:00
|
|
|
global:
|
|
|
|
- GOTAGS=cmount
|
2019-06-13 11:40:43 +02:00
|
|
|
- GOMAXPROCS=8 # workaround for cmd/mount tests locking up - see #3154
|
2019-02-06 17:04:27 +01:00
|
|
|
- GO111MODULE=off
|
2019-06-05 11:32:44 +02:00
|
|
|
- GITHUB_USER=ncw
|
2018-03-07 11:15:12 +01:00
|
|
|
- secure: gU8gCV9R8Kv/Gn0SmCP37edpfIbPoSvsub48GK7qxJdTU628H0KOMiZW/T0gtV5d67XJZ4eKnhJYlxwwxgSgfejO32Rh5GlYEKT/FuVoH0BD72dM1GDFLSrUiUYOdoHvf/BKIFA3dJFT4lk2ASy4Zh7SEoXHG6goBlqUpYx8hVA=
|
|
|
|
- secure: Uaiveq+/rvQjO03GzvQZV2J6pZfedoFuhdXrLVhhHSeP4ZBca0olw7xaqkabUyP3LkVYXMDSX8EbyeuQT1jfEe5wp5sBdfaDtuYW6heFyjiHIIIbVyBfGXon6db4ETBjOaX/Xt8uktrgNge6qFlj+kpnmpFGxf0jmDLw1zgg7tk=
|
2017-05-11 15:57:32 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2019-01-24 12:14:37 +01:00
|
|
|
- fuse
|
|
|
|
- libfuse-dev
|
|
|
|
- rpm
|
|
|
|
- pkg-config
|
2018-09-02 15:06:49 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/go-build
|
2017-02-17 11:30:45 +01:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
2019-01-24 12:14:37 +01:00
|
|
|
- go: tip
|
2017-02-17 11:30:45 +01:00
|
|
|
include:
|
2019-01-24 12:14:37 +01:00
|
|
|
- go: 1.10.x
|
|
|
|
script:
|
|
|
|
- make quicktest
|
|
|
|
- go: 1.11.x
|
|
|
|
script:
|
|
|
|
- make quicktest
|
|
|
|
- go: 1.12.x
|
2019-09-04 11:19:27 +02:00
|
|
|
script:
|
|
|
|
- make quicktest
|
|
|
|
- go: 1.13.x
|
2019-07-02 17:54:38 +02:00
|
|
|
name: Linux
|
2019-01-24 12:14:37 +01:00
|
|
|
env:
|
|
|
|
- GOTAGS=cmount
|
2019-07-02 17:54:38 +02:00
|
|
|
- BUILD_FLAGS='-include "^linux/"'
|
2019-07-02 15:02:58 +02:00
|
|
|
- DEPLOY=true
|
2019-01-24 12:14:37 +01:00
|
|
|
script:
|
|
|
|
- make build_dep
|
|
|
|
- make check
|
|
|
|
- make quicktest
|
2019-09-04 11:19:27 +02:00
|
|
|
- go: 1.13.x
|
2019-07-03 11:49:23 +02:00
|
|
|
name: Go Modules / Race
|
2019-07-02 13:33:03 +02:00
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
2019-07-03 10:57:46 +02:00
|
|
|
- GOPROXY=https://proxy.golang.org
|
2019-07-02 13:33:03 +02:00
|
|
|
script:
|
|
|
|
- make quicktest
|
2019-07-03 11:49:23 +02:00
|
|
|
- make racequicktest
|
2019-09-04 11:19:27 +02:00
|
|
|
- go: 1.13.x
|
2019-07-02 17:54:38 +02:00
|
|
|
name: Other OS
|
|
|
|
env:
|
|
|
|
- DEPLOY=true
|
|
|
|
- BUILD_FLAGS='-exclude "^(windows|darwin|linux)/"'
|
|
|
|
script:
|
|
|
|
- make
|
|
|
|
- make compile_all
|
2019-09-04 11:19:27 +02:00
|
|
|
- go: 1.13.x
|
2019-07-02 17:54:38 +02:00
|
|
|
name: macOS
|
|
|
|
os: osx
|
2019-01-24 12:14:37 +01:00
|
|
|
env:
|
|
|
|
- GOTAGS= # cmount doesn't work on osx travis for some reason
|
2019-07-02 17:54:38 +02:00
|
|
|
- BUILD_FLAGS='-include "^darwin/" -cgo'
|
2019-07-02 15:02:58 +02:00
|
|
|
- DEPLOY=true
|
2019-01-24 12:14:37 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/Library/Caches/go-build
|
|
|
|
script:
|
|
|
|
- make
|
|
|
|
- make quicktest
|
|
|
|
- make racequicktest
|
|
|
|
# - os: windows
|
2019-07-02 17:54:38 +02:00
|
|
|
# name: Windows
|
2019-09-04 11:19:27 +02:00
|
|
|
# go: 1.13.x
|
2019-01-24 12:14:37 +01:00
|
|
|
# env:
|
|
|
|
# - GOTAGS=cmount
|
|
|
|
# - CPATH='C:\Program Files (x86)\WinFsp\inc\fuse'
|
2019-07-02 17:54:38 +02:00
|
|
|
# - BUILD_FLAGS='-include "^windows/amd64" -cgo' # 386 doesn't build yet
|
2019-01-24 12:14:37 +01:00
|
|
|
# #filter_secrets: false # works around a problem with secrets under windows
|
|
|
|
# cache:
|
|
|
|
# directories:
|
|
|
|
# - ${LocalAppData}/go-build
|
|
|
|
# script:
|
|
|
|
# - make
|
|
|
|
# - make quicktest
|
|
|
|
# - make racequicktest
|
|
|
|
- go: tip
|
|
|
|
script:
|
|
|
|
- make quicktest
|
|
|
|
|
2016-10-04 18:10:20 +02:00
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
script: make travis_beta
|
2018-02-26 12:24:56 +01:00
|
|
|
skip_cleanup: true
|
2016-10-04 18:10:20 +02:00
|
|
|
on:
|
2019-07-28 20:48:01 +02:00
|
|
|
repo: rclone/rclone
|
2018-02-20 16:11:41 +01:00
|
|
|
all_branches: true
|
2019-07-02 15:02:58 +02:00
|
|
|
condition: $TRAVIS_PULL_REQUEST == false && $DEPLOY == true
|