-
Notifications
You must be signed in to change notification settings - Fork 23
/
appveyor.yml
117 lines (93 loc) · 3.27 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
# Build worker image (VM template)
image: Visual Studio 2019
# scripts that are called at very beginning, before repo cloning
init:
- date /T & time /T
- git config --global core.autocrlf input
- cmake --version
#branches:
# only:
# - master
clone_depth: 50
version: '{build}'
platform:
- x64
configuration:
- Release
environment:
MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
matrix:
- BUILD_VARIANT: "build1"
generator: "Visual Studio 16 2019"
architecture: "x64"
DIM: 2
CPU: 1
TARGET: ugshell
STATIC_BUILD: ON
- BUILD_VARIANT: "build2"
generator: "Visual Studio 16 2019"
architecture: "x64"
DIM: 2
CPU: 1
TARGET: vrl
STATIC_BUILD: OFF
- BUILD_VARIANT: "build3"
generator: "Visual Studio 16 2019"
architecture: "x64"
DIM: ALL
CPU: 1;2
TARGET: ugshell
STATIC_BUILD: ON
- BUILD_VARIANT: "build4"
generator: "Visual Studio 16 2019"
architecture: "x64"
DIM: ALL
CPU: 1;2
TARGET: vrl
STATIC_BUILD: OFF
#matrix:
# fast_finish: true
cache:
#- %APPVEYOR_BUILD_FOLDER%
#- appveyor_root/ug4/
install:
- if not exist appveyor_root mkdir appveyor_root && echo "appveyor root does not exist"
- cd appveyor_root
- if exist ughub rmdir /S /Q ughub
- git clone https://www.github.com/UG4/ughub
- set "UG4_FOLDER_SURVIVED_CACHE=true"
- if not exist ug4 mkdir ug4 && set "UG4_FOLDER_SURVIVED_CACHE=false"
- if not exist ug4\.ughub ughub\ughub init ug4
- cd ug4
- if not exist ugcore ..\ughub\ughub install ugcore
- if %UG4_FOLDER_SURVIVED_CACHE%==false rm -rf ugcore
#- rm -rf ugcore
- |-
@echo off
echo "--------------------------------------------------------------------------------"
echo "TRAVIS BUILD-INFO FOR UGCORE
echo "--------------------------------------------------------------------------------"
echo "REPOSITORY:.............%APPVEYOR_REPO_NAME%"
echo "COMMIT:.................%APPVEYOR_REPO_COMMIT%"
echo "TAG:....................%APPVEYOR_REPO_TAG_NAME%"
echo "BRANCH:.................%APPVEYOR_REPO_BRANCH%"
echo "TRAVIS-BUILD-NUMBER:....%APPVEYOR_BUILD_NUMBER%"
echo "TARGET:.................%TARGET%"
echo "UG4 dir survived cache: %UG4_FOLDER_SURVIVED_CACHE%"
echo "--------------------------------------------------------------------------------"
@echo on
- if %UG4_FOLDER_SURVIVED_CACHE%==false git clone --depth=50 https://github.com/%APPVEYOR_REPO_NAME%.git ugcore
- cd ugcore
- if %UG4_FOLDER_SURVIVED_CACHE%==true git fetch
# - git checkout -qf %APPVEYOR_REPO_COMMIT%
build_script:
- cd %APPVEYOR_BUILD_FOLDER%\appveyor_root\ug4
- dir
- if not exist %BUILD_VARIANT% mkdir %BUILD_VARIANT%
# - rm -rf %BUILD_VARIANT%/
# - mkdir %BUILD_VARIANT%
- cd %BUILD_VARIANT% && cmake ..\ -DCMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE=X64 -G "%generator%" -A "%architecture%" -DTARGET="%TARGET%" -DLAPACK=OFF -DBLAS=OFF -DDIM="%DIM%" -DCPU="%CPU%" -DCOMPILE_INFO=OFF -DEMBEDDED_PLUGINS=ON -DSTATIC_BUILD="%STATIC_BUILD%"
- MSBuild .\ug4.sln /property:Configuration=Release /property:Platform=x64
- cd ..\bin
- dir
- if %TARGET% == "ugshell" Release\ugshell.exe -call "print(\"it works\")"