mirror of
https://github.com/rclone/rclone.git
synced 2025-12-16 08:13:29 +00:00
Compare commits
11 Commits
azure-pipe
...
azure-pipe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e69e87ea7 | ||
|
|
1259785329 | ||
|
|
de4a20894a | ||
|
|
af9a972760 | ||
|
|
6dde819d27 | ||
|
|
048ff6070c | ||
|
|
f3ae16aa1c | ||
|
|
8ef9846a4c | ||
|
|
7a8cd59ea6 | ||
|
|
a75457c738 | ||
|
|
bfe0f0ec2c |
4
.gitattributes
vendored
4
.gitattributes
vendored
@@ -1,3 +1,7 @@
|
|||||||
# Ignore generated files in GitHub language statistics and diffs
|
# Ignore generated files in GitHub language statistics and diffs
|
||||||
/MANUAL.* linguist-generated=true
|
/MANUAL.* linguist-generated=true
|
||||||
/rclone.1 linguist-generated=true
|
/rclone.1 linguist-generated=true
|
||||||
|
|
||||||
|
# Don't fiddle with the line endings of test data
|
||||||
|
**/testdata/** -text
|
||||||
|
**/test/** -text
|
||||||
|
|||||||
@@ -9,21 +9,6 @@ trigger:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
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:
|
linux:
|
||||||
imageName: ubuntu-16.04
|
imageName: ubuntu-16.04
|
||||||
gorootDir: /usr/local
|
gorootDir: /usr/local
|
||||||
@@ -33,6 +18,22 @@ strategy:
|
|||||||
MAKE_CHECK: true
|
MAKE_CHECK: true
|
||||||
MAKE_QUICKTEST: true
|
MAKE_QUICKTEST: true
|
||||||
DEPLOY: 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:
|
other_os:
|
||||||
imageName: ubuntu-16.04
|
imageName: ubuntu-16.04
|
||||||
gorootDir: /usr/local
|
gorootDir: /usr/local
|
||||||
@@ -48,22 +49,22 @@ strategy:
|
|||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
MAKE_QUICKTEST: true
|
MAKE_QUICKTEST: true
|
||||||
RACEMAKE_QUICKTEST: true
|
RACEMAKE_QUICKTEST: true
|
||||||
mac:
|
go1.9:
|
||||||
imageName: macos-10.13
|
imageName: ubuntu-16.04
|
||||||
gorootDir: /usr/local
|
gorootDir: /usr/local
|
||||||
GO_VERSION: latest
|
GOCACHE: '' # build caching only came in go1.10
|
||||||
GOTAGS: "" # cmount doesn't work on osx travis for some reason
|
GO_VERSION: go1.9.7
|
||||||
BUILD_FLAGS: '-include "^darwin/" -cgo'
|
|
||||||
MAKE_QUICKTEST: true
|
MAKE_QUICKTEST: true
|
||||||
RACEMAKE_QUICKTEST: true
|
go1.10:
|
||||||
DEPLOY: true
|
imageName: ubuntu-16.04
|
||||||
windows:
|
gorootDir: /usr/local
|
||||||
imageName: windows-2019
|
GO_VERSION: go1.10.8
|
||||||
gorootDir: C:\
|
MAKE_QUICKTEST: true
|
||||||
GO_VERSION: latest
|
go1.11:
|
||||||
BUILD_FLAGS: '-include "^windows/amd64" -cgo' # 386 doesn't build yet
|
imageName: ubuntu-16.04
|
||||||
|
gorootDir: /usr/local
|
||||||
|
GO_VERSION: go1.11.8
|
||||||
MAKE_QUICKTEST: true
|
MAKE_QUICKTEST: true
|
||||||
DEPLOY: true
|
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: $(imageName)
|
vmImage: $(imageName)
|
||||||
@@ -71,6 +72,7 @@ pool:
|
|||||||
variables:
|
variables:
|
||||||
GOROOT: $(gorootDir)/go
|
GOROOT: $(gorootDir)/go
|
||||||
GOPATH: $(system.defaultWorkingDirectory)/gopath
|
GOPATH: $(system.defaultWorkingDirectory)/gopath
|
||||||
|
GOCACHE: $(system.defaultWorkingDirectory)/gocache
|
||||||
GOBIN: $(GOPATH)/bin
|
GOBIN: $(GOPATH)/bin
|
||||||
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)'
|
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)'
|
||||||
GO111MODULE: 'off'
|
GO111MODULE: 'off'
|
||||||
@@ -97,6 +99,23 @@ steps:
|
|||||||
mv !(gopath) '$(modulePath)'
|
mv !(gopath) '$(modulePath)'
|
||||||
displayName: Remove old Go, set GOBIN/GOROOT, and move project into GOPATH
|
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)
|
# Install Libraries (varies by platform)
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
@@ -144,6 +163,8 @@ steps:
|
|||||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||||
displayName: Install Go on Windows
|
displayName: Install Go on Windows
|
||||||
|
|
||||||
|
# Display environment for debugging
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
printf "Using go at: $(which go)\n"
|
printf "Using go at: $(which go)\n"
|
||||||
printf "Go version: $(go version)\n"
|
printf "Go version: $(go version)\n"
|
||||||
@@ -156,7 +177,9 @@ steps:
|
|||||||
workingDirectory: '$(modulePath)'
|
workingDirectory: '$(modulePath)'
|
||||||
displayName: Print Go version and environment
|
displayName: Print Go version and environment
|
||||||
|
|
||||||
- script: |
|
# Run Tests
|
||||||
|
|
||||||
|
- bash: |
|
||||||
make
|
make
|
||||||
make quicktest
|
make quicktest
|
||||||
workingDirectory: '$(modulePath)'
|
workingDirectory: '$(modulePath)'
|
||||||
|
|||||||
Reference in New Issue
Block a user