2019-01-24 19:14:37 +08:00
|
|
|
---
|
2014-06-27 01:23:54 +08:00
|
|
|
language: go
|
2017-11-14 20:53:46 +08:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2015-11-03 20:50:29 +08:00
|
|
|
os:
|
2019-01-24 19:14:37 +08:00
|
|
|
- linux
|
2018-09-07 17:17:27 +08:00
|
|
|
go_import_path: github.com/ncw/rclone
|
2017-11-14 20:53:46 +08:00
|
|
|
before_install:
|
2019-01-24 19:14:37 +08: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 20:50:29 +08:00
|
|
|
install:
|
2019-01-24 19:14:37 +08:00
|
|
|
- make vars
|
2016-10-05 00:10:20 +08:00
|
|
|
env:
|
2017-05-19 22:46:13 +08:00
|
|
|
global:
|
|
|
|
- GOTAGS=cmount
|
2019-02-07 00:04:27 +08:00
|
|
|
- GO111MODULE=off
|
2018-03-07 18:15:12 +08:00
|
|
|
- secure: gU8gCV9R8Kv/Gn0SmCP37edpfIbPoSvsub48GK7qxJdTU628H0KOMiZW/T0gtV5d67XJZ4eKnhJYlxwwxgSgfejO32Rh5GlYEKT/FuVoH0BD72dM1GDFLSrUiUYOdoHvf/BKIFA3dJFT4lk2ASy4Zh7SEoXHG6goBlqUpYx8hVA=
|
|
|
|
- secure: AMjrMAksDy3QwqGqnvtUg8FL/GNVgNqTqhntLF9HSU0njHhX6YurGGnfKdD9vNHlajPQOewvmBjwNLcDWGn2WObdvmh9Ohep0EmOjZ63kliaRaSSQueSd8y0idfqMQAxep0SObOYbEDVmQh0RCAE9wOVKRaPgw98XvgqWGDq5Tw=
|
|
|
|
- secure: Uaiveq+/rvQjO03GzvQZV2J6pZfedoFuhdXrLVhhHSeP4ZBca0olw7xaqkabUyP3LkVYXMDSX8EbyeuQT1jfEe5wp5sBdfaDtuYW6heFyjiHIIIbVyBfGXon6db4ETBjOaX/Xt8uktrgNge6qFlj+kpnmpFGxf0jmDLw1zgg7tk=
|
2017-05-11 21:57:32 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2019-01-24 19:14:37 +08:00
|
|
|
- fuse
|
|
|
|
- libfuse-dev
|
|
|
|
- rpm
|
|
|
|
- pkg-config
|
2018-09-02 21:06:49 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/go-build
|
2017-02-17 18:30:45 +08:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
2019-01-24 19:14:37 +08:00
|
|
|
- go: tip
|
2017-02-17 18:30:45 +08:00
|
|
|
include:
|
2019-01-24 19:14:37 +08:00
|
|
|
- go: 1.8.x
|
|
|
|
script:
|
|
|
|
- make quicktest
|
|
|
|
- go: 1.9.x
|
|
|
|
script:
|
|
|
|
- make quicktest
|
|
|
|
- go: 1.10.x
|
|
|
|
script:
|
|
|
|
- make quicktest
|
|
|
|
- go: 1.11.x
|
|
|
|
script:
|
|
|
|
- make quicktest
|
|
|
|
- go: 1.12.x
|
|
|
|
env:
|
|
|
|
- GOTAGS=cmount
|
|
|
|
script:
|
|
|
|
- make build_dep
|
|
|
|
- make check
|
|
|
|
- make quicktest
|
|
|
|
- make racequicktest
|
|
|
|
- make compile_all
|
|
|
|
- os: osx
|
|
|
|
go: 1.12.x
|
|
|
|
env:
|
|
|
|
- GOTAGS= # cmount doesn't work on osx travis for some reason
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/Library/Caches/go-build
|
|
|
|
script:
|
|
|
|
- make
|
|
|
|
- make quicktest
|
|
|
|
- make racequicktest
|
|
|
|
# - os: windows
|
|
|
|
# go: 1.12.x
|
|
|
|
# env:
|
|
|
|
# - GOTAGS=cmount
|
|
|
|
# - CPATH='C:\Program Files (x86)\WinFsp\inc\fuse'
|
|
|
|
# #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-05 00:10:20 +08:00
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
script: make travis_beta
|
2018-02-26 19:24:56 +08:00
|
|
|
skip_cleanup: true
|
2016-10-05 00:10:20 +08:00
|
|
|
on:
|
2018-09-07 17:17:27 +08:00
|
|
|
repo: ncw/rclone
|
2018-02-20 23:11:41 +08:00
|
|
|
all_branches: true
|
2019-02-26 21:18:31 +08:00
|
|
|
go: 1.12.x
|
2019-01-24 19:14:37 +08:00
|
|
|
condition: $TRAVIS_PULL_REQUEST == false && $TRAVIS_OS_NAME != "windows"
|