1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-15 15:53:41 +00:00

Compare commits

..

11 Commits

Author SHA1 Message Date
Nick Craig-Wood
5e69e87ea7 add build caching 2019-08-05 12:13:24 +01:00
Nick Craig-Wood
1259785329 add build caching 2019-08-05 10:55:11 +01:00
Nick Craig-Wood
de4a20894a add build caching 2019-08-05 10:28:20 +01:00
Nick Craig-Wood
af9a972760 add build caching 2019-08-05 10:16:40 +01:00
Nick Craig-Wood
6dde819d27 add build caching 2019-08-05 10:03:25 +01:00
Nick Craig-Wood
048ff6070c add build caching 2019-08-04 20:29:03 +01:00
Nick Craig-Wood
f3ae16aa1c add build caching 2019-08-04 20:24:40 +01:00
Nick Craig-Wood
8ef9846a4c build: CRLF again 2019-08-04 19:49:14 +01:00
Nick Craig-Wood
7a8cd59ea6 build: CRLF again 2019-08-04 19:17:42 +01:00
Nick Craig-Wood
a75457c738 build: fix CRLF avoidance 2019-08-04 19:00:15 +01:00
Nick Craig-Wood
bfe0f0ec2c build: Don't auto CRLF test data 2019-08-04 17:55:36 +01:00
2 changed files with 56 additions and 29 deletions

4
.gitattributes vendored
View File

@@ -1,3 +1,7 @@
# Ignore generated files in GitHub language statistics and diffs
/MANUAL.* linguist-generated=true
/rclone.1 linguist-generated=true
# Don't fiddle with the line endings of test data
**/testdata/** -text
**/test/** -text

View File

@@ -9,21 +9,6 @@ trigger:
strategy:
matrix:
go1.9:
imageName: ubuntu-16.04
gorootDir: /usr/local
GO_VERSION: go1.9.7
MAKE_QUICKTEST: true
go1.10:
imageName: ubuntu-16.04
gorootDir: /usr/local
GO_VERSION: go1.10.8
MAKE_QUICKTEST: true
go1.11:
imageName: ubuntu-16.04
gorootDir: /usr/local
GO_VERSION: go1.11.8
MAKE_QUICKTEST: true
linux:
imageName: ubuntu-16.04
gorootDir: /usr/local
@@ -33,6 +18,22 @@ strategy:
MAKE_CHECK: true
MAKE_QUICKTEST: true
DEPLOY: true
mac:
imageName: macos-10.13
gorootDir: /usr/local
GO_VERSION: latest
GOTAGS: "" # cmount doesn't work on osx travis for some reason
BUILD_FLAGS: '-include "^darwin/" -cgo'
MAKE_QUICKTEST: true
RACEMAKE_QUICKTEST: true
DEPLOY: true
windows:
imageName: windows-2019
gorootDir: C:\
GO_VERSION: latest
BUILD_FLAGS: '-include "^windows/amd64" -cgo' # 386 doesn't build yet
MAKE_QUICKTEST: true
DEPLOY: true
other_os:
imageName: ubuntu-16.04
gorootDir: /usr/local
@@ -48,22 +49,22 @@ strategy:
GOPROXY: https://proxy.golang.org
MAKE_QUICKTEST: true
RACEMAKE_QUICKTEST: true
mac:
imageName: macos-10.13
go1.9:
imageName: ubuntu-16.04
gorootDir: /usr/local
GO_VERSION: latest
GOTAGS: "" # cmount doesn't work on osx travis for some reason
BUILD_FLAGS: '-include "^darwin/" -cgo'
GOCACHE: '' # build caching only came in go1.10
GO_VERSION: go1.9.7
MAKE_QUICKTEST: true
RACEMAKE_QUICKTEST: true
DEPLOY: true
windows:
imageName: windows-2019
gorootDir: C:\
GO_VERSION: latest
BUILD_FLAGS: '-include "^windows/amd64" -cgo' # 386 doesn't build yet
go1.10:
imageName: ubuntu-16.04
gorootDir: /usr/local
GO_VERSION: go1.10.8
MAKE_QUICKTEST: true
go1.11:
imageName: ubuntu-16.04
gorootDir: /usr/local
GO_VERSION: go1.11.8
MAKE_QUICKTEST: true
DEPLOY: true
pool:
vmImage: $(imageName)
@@ -71,6 +72,7 @@ pool:
variables:
GOROOT: $(gorootDir)/go
GOPATH: $(system.defaultWorkingDirectory)/gopath
GOCACHE: $(system.defaultWorkingDirectory)/gocache
GOBIN: $(GOPATH)/bin
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)'
GO111MODULE: 'off'
@@ -97,6 +99,23 @@ steps:
mv !(gopath) '$(modulePath)'
displayName: Remove old Go, set GOBIN/GOROOT, and move project into GOPATH
- task: CacheBeta@0
continueOnError: true
inputs:
key: go-build-cache | $(Agent.JobName)
path: $(GOCACHE)
displayName: Cache go build
condition: ne( variables['GOCACHE'], '' )
- bash: |
mkdir -p $(GOCACHE)
echo "not empty" > $(GOCACHE)/not_empty.txt
echo "GOCACHE=" $(GOCACHE)
ls -R $(GOCACHE)
continueOnError: true
displayName: Create cache dir
condition: ne( variables['GOCACHE'], '' )
# Install Libraries (varies by platform)
- bash: |
@@ -144,6 +163,8 @@ steps:
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: Install Go on Windows
# Display environment for debugging
- bash: |
printf "Using go at: $(which go)\n"
printf "Go version: $(go version)\n"
@@ -156,7 +177,9 @@ steps:
workingDirectory: '$(modulePath)'
displayName: Print Go version and environment
- script: |
# Run Tests
- bash: |
make
make quicktest
workingDirectory: '$(modulePath)'