-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathappveyor.yml
40 lines (30 loc) · 1.18 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#-----------------------------------------------------------------------------
# Configuration for continuous integration service at appveyor.com
#-----------------------------------------------------------------------------
version: 1.7.1.{build}
branches:
only:
- master
# Operating system (build VM template)
os: Visual Studio 2017
# scripts that are called at very beginning, before repo cloning
init:
# clone directory
clone_folder: c:\projects\dgm
platform: x64
#install:
# -cmd: choco install OpenCV
build_script:
- choco install opencv
- cd c:\projects\dgm
- md build
- cd build
- cmake -DOpenCV_DIR=c:\tools\opencv\build -G"Visual Studio 15 Win64" -DUSE_OPENGL=ON ..
- msbuild /m /p:Configuration=Release /p:Platform="x64" DGM.sln
test_script:
- cmd: |-
copy C:\tools\opencv\build\x64\vc14\bin\opencv_world???.dll ".\bin\Release"
copy C:\tools\opencv\build\x64\vc14\bin\opencv_world???d.dll ".\bin\Debug"
.\bin\Release\Tests.exe --gtest_output=xml:tests.xml > tests.txt
on_finish:
- ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path c:\projects\dgm\build\tests.xml))