-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
59 lines (51 loc) · 1.93 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
shallow_clone: false
image:
- Visual Studio 2017
- Visual Studio 2019
platform:
- x64
configuration:
- Debug
- Release
install:
- git submodule update --init --recursive
build_script:
- mkdir build
- cd build
- SET VS_ARCH=""
- if "%platform%" == "x64" SET VS_ARCH=-A%PLATFORM%
- echo VS_ARCH = %VS_ARCH%
- cmake %VS_ARCH% .. > %APPVEYOR_BUILD_FOLDER%\configure.log
- cmake --build . --config %CONFIGURATION% > %APPVEYOR_BUILD_FOLDER%\build.log
- cd ..
- mkdir %APPVEYOR_PROJECT_NAME%
- if exist docs cp -r docs %APPVEYOR_PROJECT_NAME%
- if exist examples cp -r examples %APPVEYOR_PROJECT_NAME%
- if exist extensions cp -r extensions %APPVEYOR_PROJECT_NAME%
- if exist externals cp -r externals %APPVEYOR_PROJECT_NAME%
- if exist extras cp -r extras %APPVEYOR_PROJECT_NAME%
- if exist help cp -r help %APPVEYOR_PROJECT_NAME%
- if exist init cp -r init %APPVEYOR_PROJECT_NAME%
- if exist java-classes cp -r java-classes %APPVEYOR_PROJECT_NAME%
- if exist java-doc cp -r java-doc %APPVEYOR_PROJECT_NAME%
- if exist jsui cp -r jsui %APPVEYOR_PROJECT_NAME%
- if exist patchers cp -r patchers %APPVEYOR_PROJECT_NAME%
- if exist tests cp -r tests %APPVEYOR_PROJECT_NAME%
- cp icon.png %APPVEYOR_PROJECT_NAME%
- cp License.md %APPVEYOR_PROJECT_NAME%
- cp package-info.json %APPVEYOR_PROJECT_NAME%
- cp ReadMe.md %APPVEYOR_PROJECT_NAME%
- set SHORT_COMMIT=%APPVEYOR_REPO_COMMIT:~0,7%
- 7z a %APPVEYOR_PROJECT_NAME%-win-%platform%-%SHORT_COMMIT%-%CONFIGURATION%.zip %APPVEYOR_PROJECT_NAME% > %APPVEYOR_BUILD_FOLDER%\archive.log
test_script:
- cd build
- ctest -C %CONFIGURATION% . -V > %APPVEYOR_BUILD_FOLDER%\test.log
artifacts:
- name: Build
path: '*.zip'
- name: Log files
path: '*.log'
on_failure:
- appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\configure.log
- appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\build.log
- appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\test.log