mirror of
https://github.com/rclone/rclone.git
synced 2025-01-13 20:38:12 +02:00
build: bring pipelines in to line with travis
This commit is contained in:
parent
7b687709cf
commit
fd1154828f
@ -9,30 +9,61 @@ trigger:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
linux:
|
|
||||||
imageName: ubuntu-16.04
|
|
||||||
gorootDir: /usr/local
|
|
||||||
GO_VERSION: latest
|
|
||||||
mac:
|
|
||||||
imageName: macos-10.13
|
|
||||||
gorootDir: /usr/local
|
|
||||||
GO_VERSION: latest
|
|
||||||
windows:
|
|
||||||
imageName: windows-2019
|
|
||||||
gorootDir: C:\
|
|
||||||
GO_VERSION: latest
|
|
||||||
go1.11:
|
|
||||||
imageName: ubuntu-16.04
|
|
||||||
gorootDir: /usr/local
|
|
||||||
GO_VERSION: go1.11.8
|
|
||||||
go1.10:
|
|
||||||
imageName: ubuntu-16.04
|
|
||||||
gorootDir: /usr/local
|
|
||||||
GO_VERSION: go1.10.8
|
|
||||||
go1.9:
|
go1.9:
|
||||||
imageName: ubuntu-16.04
|
imageName: ubuntu-16.04
|
||||||
gorootDir: /usr/local
|
gorootDir: /usr/local
|
||||||
GO_VERSION: go1.9.7
|
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
|
||||||
|
GO_VERSION: latest
|
||||||
|
GOTAGS: cmount
|
||||||
|
BUILD_FLAGS: '-include "^linux/"'
|
||||||
|
MAKE_CHECK: true
|
||||||
|
MAKE_QUICKTEST: true
|
||||||
|
DEPLOY: true
|
||||||
|
other_os:
|
||||||
|
imageName: ubuntu-16.04
|
||||||
|
gorootDir: /usr/local
|
||||||
|
GO_VERSION: latest
|
||||||
|
BUILD_FLAGS: '-exclude "^(windows|darwin|linux)/"'
|
||||||
|
MAKE_COMPILE_ALL: true
|
||||||
|
DEPLOY: true
|
||||||
|
modules_race:
|
||||||
|
imageName: ubuntu-16.04
|
||||||
|
gorootDir: /usr/local
|
||||||
|
GO_VERSION: latest
|
||||||
|
GO111MODULE: on
|
||||||
|
GOPROXY: https://proxy.golang.org
|
||||||
|
MAKE_QUICKTEST: true
|
||||||
|
RACEMAKE_QUICKTEST: 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
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: $(imageName)
|
vmImage: $(imageName)
|
||||||
@ -130,24 +161,29 @@ steps:
|
|||||||
make quicktest
|
make quicktest
|
||||||
workingDirectory: '$(modulePath)'
|
workingDirectory: '$(modulePath)'
|
||||||
displayName: Run tests
|
displayName: Run tests
|
||||||
|
condition: eq( variables['MAKE_QUICKTEST'], 'true' )
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
make racequicktest
|
make racequicktest
|
||||||
workingDirectory: '$(modulePath)'
|
workingDirectory: '$(modulePath)'
|
||||||
displayName: Race test
|
displayName: Race test
|
||||||
condition: eq( variables['GO_LATEST'], 'true' )
|
condition: eq( variables['RACEMAKE_QUICKTEST'], 'true' )
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
make build_dep
|
make build_dep
|
||||||
make check
|
make check
|
||||||
condition: and( eq( variables['Agent.OS'], 'Linux' ), eq( variables['GO_LATEST'], 'true' ) )
|
|
||||||
workingDirectory: '$(modulePath)'
|
workingDirectory: '$(modulePath)'
|
||||||
displayName: Code quality test
|
displayName: Code quality test
|
||||||
|
condition: eq( variables['MAKE_CHECK'], 'true' )
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
make compile_all
|
make compile_all
|
||||||
condition: and( eq( variables['Agent.OS'], 'Linux' ), eq( variables['GO_LATEST'], 'true' ) )
|
|
||||||
workingDirectory: '$(modulePath)'
|
workingDirectory: '$(modulePath)'
|
||||||
displayName: Compile all architectures test
|
displayName: Compile all architectures test
|
||||||
|
condition: eq( variables['MAKE_COMPILE_ALL'], 'true' )
|
||||||
|
|
||||||
# FIXME deploy
|
- bash: |
|
||||||
|
make vars # FIXME travis_beta
|
||||||
|
workingDirectory: '$(modulePath)'
|
||||||
|
displayName: Deploy built binaries
|
||||||
|
condition: and( eq( variables['DEPLOY'], 'true' ), ne( variables['Build.Reason'], 'PullRequest' ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user