37 lines
1.4 KiB
YAML
37 lines
1.4 KiB
YAML
version: "{build}"
|
|
|
|
clone_folder: c:\gopath\src\gocv.io\x\gocv
|
|
|
|
platform:
|
|
- MinGW_x64
|
|
|
|
environment:
|
|
GOPATH: c:\gopath
|
|
GOROOT: c:\go
|
|
GOVERSION: 1.16
|
|
TEST_EXTERNAL: 1
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
|
|
|
cache:
|
|
- C:\opencv -> appveyor_build_opencv.cmd
|
|
|
|
install:
|
|
- if not exist "C:\opencv" appveyor_build_opencv.cmd
|
|
- set PATH=C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\7-Zip;C:\Program Files\Microsoft\Web Platform Installer\;C:\Tools\PsTools;C:\Program Files (x86)\CMake\bin;C:\go\bin;C:\Tools\NuGet;C:\Program Files\LLVM\bin;C:\Tools\curl\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Yarn\bin;C:\Users\appveyor\AppData\Local\Yarn\bin;C:\Program Files\AppVeyor\BuildAgent\
|
|
- set PATH=%PATH%;C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
|
|
- set PATH=%PATH%;C:\Tools\GitVersion;C:\Program Files\Git LFS;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\opencv\build\install\x64\mingw\bin;
|
|
- echo %PATH%
|
|
- echo %GOPATH%
|
|
- go version
|
|
- cd c:\gopath\src\gocv.io\x\gocv
|
|
- go get -d .
|
|
- set GOCV_CAFFE_TEST_FILES=C:\opencv\testdata
|
|
- set GOCV_TENSORFLOW_TEST_FILES=C:\opencv\testdata
|
|
- set GOCV_ONNX_TEST_FILES=C:\opencv\testdata
|
|
- set OPENCV_ENABLE_NONFREE=ON
|
|
- go env
|
|
|
|
build_script:
|
|
- go test -tags matprofile -v .
|
|
- go test -tags matprofile -v ./contrib
|