forked from Wangscape/Wangscape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
149 lines (89 loc) · 3.43 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
version: 0.1.{build}
image: Visual Studio 2015
configuration: Release
platform: x86
cache: packages
nuget:
project_feed: true
before_build:
- cmd: >-
del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
echo Restoring Nuget Packages
nuget restore
echo Fetching submodules
git submodule update --init --recursive
git clone --single-branch https://github.com/Wangscape/Wangview.git
git clone --single-branch https://github.com/Wangscape/Wangcheck.git
cd lib\spotify-json
echo Building spotify-json
mkdir build32
cd build32
cmake .. -DBoost_NO_BOOST_CMAKE=TRUE -DBOOST_ROOT=../../../packages/boost.1.63.0.0/lib/native
cmake --build . --config Release
cd ..\..\..
cd lib\libnoise
echo Building libnoise
mkdir build
cd build
cmake ..
cmake --build . --config Release
cd ..\..\..
build:
project: Wangscape.sln
verbosity: minimal
after_build:
- ps: >-
$webclient = New-Object System.Net.WebClient
$basedir = $pwd.Path + "\"
$filepath = $basedir + "opengl32sw-32.7z"
# Download and retry up to 3 times in case of network transient errors.
$url = "http://download.qt.io/development_releases/prebuilt/llvmpipe/windows/opengl32sw-32.7z"
$webclient.DownloadFile($url, $filepath)
7z x opengl32sw-32.7z
move opengl32sw.dll Release\opengl32.dll
cd Wangview
Set-Item Env:PYTHON "C:\Python34"
C:package.bat
cd ..
cd Wangcheck
dir
Set-Item Env:PYTHON "C:\Python36"
C:package.bat
cd ..
mkdir dist\Wangscape
cd dist\Wangscape
robocopy ..\.. . CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md STYLE_GUIDE.md
mkdir Wangscape
robocopy ..\..\Release Wangscape Wangscape.exe WangscapeTest.exe noise.dll sfml-graphics-2.dll sfml-system-2.dll sfml-window-2.dll
robocopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x86\Microsoft.VC140.CRT" Wangscape msvcp140.dll vcruntime140.dll
mkdir Wangview
xcopy /s /i ..\..\Wangview\dist\Wangview Wangview
mkdir Wangcheck
xcopy /s /i ..\..\Wangcheck\build\Wangcheck Wangcheck
xcopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x86\Microsoft.VC140.CRT\vcruntime140.dll" Wangcheck
mkdir doc
xcopy /s /i ..\..\doc doc
cd ..
7z a Wangscape.zip Wangscape
cd ..
test_script:
- cmd: >-
Release\WangscapeTest.exe --gtest_output=xml
for /D %%i in (doc\examples\*) do echo "%%i"
for /D %%i in (doc\examples\*) do Wangcheck\build\Wangcheck\Wangcheck.exe "%%i"\example_options.json doc\schemas
for /D %%i in (doc\examples\*) do Release\Wangscape.exe "%%i"\example_options.json
after_test:
- ps: >-
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test_detail.xml))
mkdir example_output
$folders = Get-ChildItem -Path doc/examples | ?{ $_.PSIsContainer }
$folders | ForEach-Object { robocopy doc/examples/"$_"/output example_output/"$_" * }
7z a example_output.zip example_output
artifacts:
- path: dist\Wangscape.zip
name: Wangscape executable package
type: zip
- path: example_output.zip
name: Example output
type: zip