2017-05-12 18:01:05 +08:00
|
|
|
version: '{build}'
|
|
|
|
|
|
|
|
clone_folder: C:\projects\go\src\github.com\billziss-gh\cgofuse
|
|
|
|
|
|
|
|
environment:
|
2018-01-16 21:20:59 +08:00
|
|
|
CPATH: C:\projects\winfsp\inc\fuse
|
2017-05-12 18:01:05 +08:00
|
|
|
GODEBUG: cgocheck=2
|
|
|
|
GOPATH: C:\projects\go
|
|
|
|
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
|
|
|
|
|
|
|
|
install:
|
2018-01-16 21:20:59 +08:00
|
|
|
- choco install winfsp --version=1.0.17072 -y
|
|
|
|
- git clone -q https://github.com/billziss-gh/winfsp.git C:\projects\winfsp
|
|
|
|
- git -C C:\projects\winfsp checkout -q release/1.2
|
2017-05-12 18:01:05 +08:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- go install -v ./...
|
|
|
|
|
|
|
|
test_script:
|
2018-05-03 00:09:45 +08:00
|
|
|
- go test -v ./fuse
|
2018-01-16 21:20:59 +08:00
|
|
|
|
2017-05-12 18:01:05 +08:00
|
|
|
# hard code fsreg parameters because appveyor does not like percents ("--VolumePrefix=%1 %2")
|
|
|
|
- C:\projects\winfsp\tools\fsreg.bat gomemfs "C:\projects\go\bin\memfs.exe" "--VolumePrefix=\gomemfs\share M:" "D:P(A;;RPWPLC;;;WD)"
|
2018-01-16 21:20:59 +08:00
|
|
|
|
|
|
|
- call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x64
|
|
|
|
- devenv C:\projects\winfsp\build\VStudio\winfsp.sln /build "Release|x64"
|
|
|
|
|
|
|
|
# test against WinFsp v1.0
|
2017-05-12 18:01:05 +08:00
|
|
|
- 'net use M: \\gomemfs\share'
|
|
|
|
- 'M: & cd'
|
2018-05-03 00:09:45 +08:00
|
|
|
- C:\projects\winfsp\build\VStudio\build\Release\winfsp-tests-x64.exe --external --resilient --share-prefix=\gomemfs\share -create_allocation_test -create_fileattr_test -getfileinfo_name_test -setfileinfo_test -delete_access_test -setsecurity_test -querydir_namelen_test -reparse* -stream*
|
2017-05-12 18:01:05 +08:00
|
|
|
- 'C: & cd'
|
|
|
|
- 'net use M: /delete'
|
2018-01-16 21:20:59 +08:00
|
|
|
|
|
|
|
# test against WinFsp v1.2 DLL with chflags, setcrtime and setchgtime
|
|
|
|
# HACK: mixing DLL and FSD versions; do not try this at home
|
|
|
|
- copy C:\projects\winfsp\build\VStudio\build\Release\winfsp-x64.dll C:\projects\go\bin
|
|
|
|
- 'net use M: \\gomemfs\share'
|
|
|
|
- 'M: & cd'
|
2018-05-03 00:09:45 +08:00
|
|
|
- C:\projects\winfsp\build\VStudio\build\Release\winfsp-tests-x64.exe --external --resilient --share-prefix=\gomemfs\share -create_allocation_test -create_fileattr_test -getfileinfo_name_test -delete_access_test -setsecurity_test -querydir_namelen_test -reparse* -stream*
|
2018-01-16 21:20:59 +08:00
|
|
|
- 'C: & cd'
|
|
|
|
- 'net use M: /delete'
|