forked from EspoTek/Labrador
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
63 lines (51 loc) · 1.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
version: build{build}
image: Visual Studio 2017
environment:
access_token:
secure: DXAumCpZjJ3erz0OmBJybIJTwux9uSrdtqKtezd4wI9b2ELz3NELPwZfp+WfYKtb
matrix:
- QT_PATH : C:\Qt\5.12\msvc2017_64\bin
PLATFORM : amd64
OUTPUT_BIN_DIR : bin64
- QT_PATH : C:\Qt\5.12\msvc2017\bin
PLATFORM : x86
OUTPUT_BIN_DIR : bin32
clone_folder: c:\dev\labrador
clone_depth: 1
configuration: Release
skip_tags: true
branches:
only:
- master
init:
- set PATH=%QT_PATH%;%PATH%
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
before_build:
- cd c:\dev\labrador\Desktop_Interface
build_script:
- ps: $env:GIT_HASH_SHORT=$(git rev-parse --short HEAD)
- qmake CONFIG+=release DEFINES+=GIT_HASH_SHORT=%GIT_HASH_SHORT%
- nmake
after_build:
- windeployqt bin\Labrador.exe
- del bin\vcredist*.exe
- del bin\*.pdb
artifacts:
- path: Desktop_Interface\bin
name: Labrador_%PLATFORM%
type: zip
on_success:
- cd C:\dev
- git clone --depth 1 https://github.com/EspoTek/Labrador-win-builder
- cd Labrador-win-builder
- git config --global credential.helper store
- ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "[email protected]"
- git config --global user.name "Chris Esposito"
- git checkout master
- xcopy /i /s /y c:\dev\labrador\Desktop_Interface\bin %OUTPUT_BIN_DIR%
- git add %OUTPUT_BIN_DIR%
- git commit -a -m "Automatic update from main Labrador repository"
- git push
matrix:
fast_finish: true