forked from nuttyartist/notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
59 lines (49 loc) · 2.13 KB
/
Copy pathappveyor.yml
File metadata and controls
59 lines (49 loc) · 2.13 KB
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
clone_depth: 200
version: '0.9.0-{Build}'
environment:
matrix:
# MSVC x86
- name: win32
platformEnv: amd64_x86
qt: 5.6\msvc2015
# MSVC x64
- name: win64
platformEnv: amd64
qt: 5.6\msvc2015_64
# MinGW
- name: win32
platformEnv: mingw
qt: 5.6\mingw49_32
configuration: Release
clone_folder: c:\ci\notes
cache:
- C:\Program Files (x86)\Inno Setup 5 -> appveyor.yml
install:
- ps: Update-AppveyorBuild -Version "$(git describe --tags $(git rev-list --tags --max-count=1))~git$($env:appveyor_repo_commit.substring(0,7))"
- setx /m PLATFORMENV %platformEnv%
- if not exist "C:\Program Files (x86)\Inno Setup 5" choco install innosetup
- set PATH="C:\Program Files\7-Zip";"C:\Program Files (x86)\Inno Setup 5";%PATH%
- if %platformEnv%==mingw set PATH=C:\Qt\Tools\mingw492_32\bin;%PATH%
- set PATH=C:\Qt\%qt%\bin;%PATH%
- if not %platformEnv%==mingw call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platformEnv%
build_script:
- cd C:\ci\notes\3rdParty\QSimpleUpdater
- git submodule update --init
- cd C:\ci\notes\src
- qmake -config release
- if not %platformEnv%==mingw (nmake) else (mingw32-make)
- if not %platformEnv%==mingw (nmake install) else (mingw32-make install)
- cd C:\ci\notes\bin
- windeployqt .
- if %platformEnv%==amd64_x86 copy "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\redist\\x86\\Microsoft.VC140.CRT\\msvcp140.dll" .
- if %platformEnv%==amd64_x86 copy "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\redist\\x86\\Microsoft.VC140.CRT\\vcruntime140.dll" .
- if %platformEnv%==amd64 copy "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\redist\\x64\\Microsoft.VC140.CRT\\msvcp140.dll" .
- if %platformEnv%==amd64 copy "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\redist\\x64\\Microsoft.VC140.CRT\\vcruntime140.dll" .
- iscc C:\ci\notes\packaging\windows\Notes_Inno_Script.iss
- cd C:\ci\notes\installer
- dir
on_success:
- ps: Push-AppveyorArtifact $("NotesSetup_"+$env:APPVEYOR_BUILD_VERSION+"_"+$env:platformEnv+".exe")
artifacts:
- path: '*.exe'
name: 'App Executable $(name)'