-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.appveyor.yml
59 lines (54 loc) · 2.3 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '{build}'
branches:
only:
- master
- /^test-.*/
os: Visual Studio 2013
configuration:
- Debug
- Release
# Before anything else: Download and extract dependency package
init:
- ps: (new-object net.webclient).DownloadFile('https://github.com/projekter/dspdfviewer/releases/download/v1.14-42-g4acfb31/DependenciesDyn.rar', 'c:\dependencies.rar')
- cmd: cd \
- cmd: 7z x \dependencies.rar
- cmd: cd \projects\dspdfviewer
# Before build: Let CMake create the solution file
before_build:
- cmd: mkdir \projects\dspdfviewer\build
- cmd: cd \projects\dspdfviewer\build
- cmd: >
cmake ..
-G "Visual Studio 12 2013" -T v120_xp
-DUsePrerenderedPDF=ON
-DBoostStaticLink=ON
-DWindowsStaticLink=OFF
-DRunDualScreenTests=OFF
-DBOOST_ROOT=\libraries\boost
-DBOOST_LIBRARYDIR=\libraries\boost\lib32-msvc-12.0
build:
project: C:\projects\dspdfviewer\build\dspdfviewer.sln
parallel: true
before_test:
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\cairo\bin
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\expat\bin
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\fontconfig\lib
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\freetype\bin
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\lcms\lib\MS
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\libiconv\lib
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\libjpeg-turbo\bin
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\libpng\bin
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\libtiff\bin
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\openjpeg\bin
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\zlib\bin
- cmd: SET PATH=%PATH%;C:\dspdf\popplerDyn\poppler\bin
- cmd: SET PATH=%PATH%;C:\qt\5.5\msvc2013\bin
- cmd: if exist Testing\Debug copy C:\dspdf\popplerDyn\poppler\bin\poppler-qt5d.dll Testing\Debug\poppler-qt5.dll
- cmd: if exist Testing\Debug copy C:\dspdf\popplerDyn\poppler\bin\poppler-qt5d.dll Debug\poppler-qt5.dll
- cmd: if exist Testing\Debug windeployqt Testing\Debug\
- cmd: if exist Testing\Debug windeployqt Debug\
- cmd: SET CTEST_OUTPUT_ON_FAILURE=1
- cmd: if exist Testing\Release windeployqt Testing\Release\
- cmd: if exist Testing\Release windeployqt Release\
after_test:
- cmd: msbuild RUN_TESTS.vcxproj