-
Notifications
You must be signed in to change notification settings - Fork 32
/
appveyor.yml
74 lines (67 loc) · 2.6 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
image: Visual Studio 2017
configuration:
- release
install:
- echo %APPVEYOR_REPO_TAG%
- if %APPVEYOR_REPO_TAG% equ true echo istagged
# INSTALL QT
- set QTDIR=C:\Qt\5.11\msvc2017_64
- set PATH=%QTDIR%\bin;%PATH%
- set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
# INSTALL WINDOWS UTILS
- set PATH="%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;%PATH%"
- set PATH="%ProgramFiles(x86)%\Windows Kits\10\bin\x64\;%PATH%"
# INSTALL ENV
- set PACKAGE_NAME=Dnai-Editor_%APPVEYOR_REPO_TAG_NAME%
- set INSTALL_FOLDER=%APPVEYOR_BUILD_FOLDER%\Dnai\Editor\%APPVEYOR_REPO_TAG_NAME%
- call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
- set PATH=%APPVEYOR_BUILD_FOLDER%\scripts\windows;%PATH%
# INSTALL JQ
- if %APPVEYOR_REPO_TAG% equ true mkdir %APPVEYOR_BUILD_FOLDER%\Downloads
- if %APPVEYOR_REPO_TAG% equ true cd %APPVEYOR_BUILD_FOLDER%\Downloads
- ps: install_jq
- if %APPVEYOR_REPO_TAG% equ true set PATH=%APPVEYOR_BUILD_FOLDER%\Downloads;%PATH%
artifacts:
- path: Windows_x64
name: Windows_x64_Dnai-Editor_%APPVEYOR_REPO_TAG_NAME%
- path: Core
name: Windows_x64_Core
before_build:
# CHECKOUT
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
- if %APPVEYOR_REPO_TAG% equ true curl -fsSL -o pythonBackend.zip https://github.com/Nicolas-Constanty/Dnai.Editor/releases/download/PythonBackend/pythonBackend.zip
- if %APPVEYOR_REPO_TAG% equ true git clone https://github.com/Gouet/Software-updater.git
- if %APPVEYOR_REPO_TAG% equ true git clone https://%AppVeyorToken%@duly-eip.visualstudio.com/_git/Duly
- if %APPVEYOR_REPO_TAG% equ true git clone https://github.com/Gouet/DNAI_updaters.git
build_script:
# BUILD EDITOR
- FOR /f "tokens=1,2,3 delims=." %%a IN ("%APPVEYOR_REPO_TAG_NAME%") do set VERSION_MAJOR=%%a&set VERSION_MINOR=%%b&set VERSION_BUILD=%%c
- build_editor
# INSTALL EDITOR
- if %APPVEYOR_REPO_TAG% equ true install_editor
# BUILD SERVER
- build_server
# INSTALL SERVER
- if %APPVEYOR_REPO_TAG% equ true install_server
# BUILD UPDATER
- if %APPVEYOR_REPO_TAG% equ true build_updater
# INSTALL UPDATER
- if %APPVEYOR_REPO_TAG% equ true install_updater
# BUILD CORE
- if %APPVEYOR_REPO_TAG% equ true build_core
# INSTALL CORE
- if %APPVEYOR_REPO_TAG% equ true install_core
# BUILD SETUP
- if %APPVEYOR_REPO_TAG% equ true build_setup
# BUILD ARTEFACTS
- if %APPVEYOR_REPO_TAG% equ true build_artefacts
deploy:
- provider: Environment
name: Github
on:
APPVEYOR_REPO_TAG: true
after_deploy:
# DEPLOY
- if %APPVEYOR_REPO_TAG% equ true deploy
- if %APPVEYOR_REPO_TAG% equ true updater