-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
79 lines (63 loc) · 1.78 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
# GENERAL CONFIGURATION #
#version format
version: '1.0.{build}'
#branches to build
branches:
only:
- master
#don't build on tags
skip_tags: true
# ENVIRONMENT CONFIGURATION #
clone_folder: c:\%PROJECT_NAME%
shallow_clone: true
clone_depth: 5
environment:
PROJECT_NAME: chrome-password-reader
matrix:
- id: msvc-x86
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x86
compiler: msvc-15
generator: "Visual Studio 15 2017"
QTDIR: "C:\\Qt\\5.11.1\\msvc2015"
- id: msvc-x64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
compiler: msvc-15
generator: "Visual Studio 15 2017 Win64"
QTDIR: "C:\\Qt\\5.11.1\\msvc2017_64"
configuration:
- Release
install:
- set PATH=%QTDIR%\bin;%PATH%
- set ORIGPATH=%PATH%
#the build fail once the job fails
matrix:
fast_finish: true
# BUILD CONFIGURATION #
before_build:
- cd c:\%PROJECT_NAME%
- md build
build_script:
- cd build
- cmake .. -G "%generator%"
- cmake --build . --config "%configuration%"
after_build:
- cd C:\%PROJECT_NAME%\build\%configuration%\
- windeployqt.exe --no-opengl-sw --no-translations --no-system-d3d-compiler -no-angle ./chrome-password-reader.exe
- 7z a %PROJECT_NAME%-win-%platform%.zip ./*
- move %PROJECT_NAME%-win-%platform%.zip C:\%PROJECT_NAME%\%PROJECT_NAME%-win-%platform%.zip
# TEST CONFIGURATION #
test: off
# ARTIFACTS AND DEPLOYMENT CONFIGURATION #
artifacts:
- path: '%PROJECT_NAME%-win-%platform%.zip'
name: artifacts
deploy:
release: v$(appveyor_build_version)
description: Chrome password export tool for Windows
tag: v$(appveyor_build_version)
provider: GitHub
auth_token:
secure: PTmCCvHOYwSne/qGWheaYLb15X89BkUzh/hi8Zem+P3oGsLn6pAMuY21IbpYk83I
artifact: '%PROJECT_NAME%-win-%platform%.zip'