2017-05-11 13:56:11 +00:00
|
|
|
version: "{build}"
|
|
|
|
|
|
|
|
os: Windows Server 2012 R2
|
|
|
|
|
2019-07-28 18:48:01 +00:00
|
|
|
clone_folder: c:\gopath\src\github.com\rclone\rclone
|
2017-05-11 13:56:11 +00:00
|
|
|
|
2018-09-02 13:06:49 +00:00
|
|
|
cache:
|
|
|
|
- '%LocalAppData%\go-build'
|
|
|
|
|
2017-05-11 13:56:11 +00:00
|
|
|
environment:
|
2017-05-13 08:59:41 +00:00
|
|
|
GOPATH: C:\gopath
|
2017-05-11 13:56:11 +00:00
|
|
|
CPATH: C:\Program Files (x86)\WinFsp\inc\fuse
|
2017-05-13 08:59:41 +00:00
|
|
|
ORIGPATH: '%PATH%'
|
|
|
|
NOCCPATH: C:\MinGW\bin;%GOPATH%\bin;%PATH%
|
|
|
|
PATHCC64: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%NOCCPATH%
|
|
|
|
PATHCC32: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin;%NOCCPATH%
|
|
|
|
PATH: '%PATHCC64%'
|
|
|
|
RCLONE_CONFIG_PASS:
|
2019-07-28 21:46:26 +00:00
|
|
|
secure: sq9CPBbwaeKJv+yd24U44neORYPQVy6jsjnQptC+5yk=
|
2017-05-11 13:56:11 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- choco install winfsp -y
|
2017-05-13 08:59:41 +00:00
|
|
|
- choco install zip -y
|
|
|
|
- copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe
|
2017-05-11 13:56:11 +00:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- echo %PATH%
|
|
|
|
- echo %GOPATH%
|
|
|
|
- go version
|
|
|
|
- go env
|
|
|
|
- go install
|
2017-05-13 08:59:41 +00:00
|
|
|
- go build
|
|
|
|
- make log_since_last_release > %TEMP%\git-log.txt
|
|
|
|
- make version > %TEMP%\version
|
|
|
|
- set /p RCLONE_VERSION=<%TEMP%\version
|
|
|
|
- set PATH=%PATHCC32%
|
2017-05-19 14:46:13 +00:00
|
|
|
- go run bin/cross-compile.go -release beta-latest -git-log %TEMP%\git-log.txt -include "^windows/386" -cgo -tags cmount %RCLONE_VERSION%
|
2017-05-13 08:59:41 +00:00
|
|
|
- set PATH=%PATHCC64%
|
2017-05-19 14:46:13 +00:00
|
|
|
- go run bin/cross-compile.go -release beta-latest -git-log %TEMP%\git-log.txt -include "^windows/amd64" -cgo -no-clean -tags cmount %RCLONE_VERSION%
|
2017-05-11 13:56:11 +00:00
|
|
|
|
|
|
|
test_script:
|
2017-05-19 14:46:13 +00:00
|
|
|
- make GOTAGS=cmount quicktest
|
2019-09-04 20:30:48 +00:00
|
|
|
- make GOTAGS=cmount racequicktest
|
2017-05-13 08:59:41 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: rclone.exe
|
|
|
|
- path: build/*-v*.zip
|
|
|
|
|
|
|
|
deploy_script:
|
2019-07-28 18:48:01 +00:00
|
|
|
- IF "%APPVEYOR_REPO_NAME%" == "rclone/rclone" IF "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" make appveyor_upload
|