-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ec5c6a
commit dbfb10b
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# GENERAL CONFIGURATION # | ||
#version format | ||
version: '1.0.{build}' | ||
|
||
#branches to build | ||
branches: | ||
only: | ||
- master | ||
|
||
#don't build on tags | ||
skip_tags: true | ||
|
||
# ENVIRONMENT CONFIGURATION # | ||
#build image | ||
image: | ||
- Visual Studio 2017 | ||
|
||
init: | ||
- set QTDIR=C:\Qt\5.11.1\msvc2017_64 | ||
- set PATH=%QTDIR%\bin;%PATH% | ||
- set ORIGPATH=%PATH% | ||
|
||
clone_folder: c:\%PROJECT_NAME% | ||
|
||
shallow_clone: true | ||
|
||
clone_depth: 5 | ||
|
||
environment: | ||
PROJECT_NAME: chrome-password-reader | ||
|
||
#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 "Visual Studio 15 2017 Win64" | ||
- cmake --build . --config Release | ||
|
||
after_build: | ||
- cd C:\%PROJECT_NAME%\build\Release\ | ||
- windeployqt.exe --no-opengl-sw --no-translations --no-system-d3d-compiler -no-angle ./chrome-password-reader.exe | ||
- 7z a %PROJECT_NAME%-win-x64.zip ./* | ||
- move %PROJECT_NAME%-win-x64.zip C:\%PROJECT_NAME%\%PROJECT_NAME%-win-x64.zip | ||
|
||
# TEST CONFIGURATION # | ||
test: off | ||
|
||
# ARTIFACTS AND DEPLOYMENT CONFIGURATION # | ||
artifacts: | ||
- path: '%PROJECT_NAME%-win-x64.zip' | ||
name: artifacts | ||
|
||
deploy: | ||
release: v$(appveyor_build_version) | ||
description: Software for Windows | ||
tag: v$(appveyor_build_version) | ||
provider: GitHub | ||
auth_token: | ||
secure: PTmCCvHOYwSne/qGWheaYLb15X89BkUzh/hi8Zem+P3oGsLn6pAMuY21IbpYk83I | ||
artifact: '%PROJECT_NAME%-win-x64.zip' |