Labrador/.appveyor.yml

64 lines
1.6 KiB
YAML
Raw Normal View History

2018-11-22 09:04:36 +00:00
version: build{build}
2018-11-22 09:01:16 +00:00
image: Visual Studio 2017
2018-11-22 09:26:09 +00:00
2018-11-25 03:40:08 +00:00
environment:
2018-11-26 02:08:54 +00:00
access_token:
secure: DXAumCpZjJ3erz0OmBJybIJTwux9uSrdtqKtezd4wI9b2ELz3NELPwZfp+WfYKtb
2018-11-25 03:40:08 +00:00
matrix:
- QT_PATH : C:\Qt\5.12\msvc2017_64\bin
2018-11-25 03:40:08 +00:00
PLATFORM : amd64
2018-11-26 00:56:49 +00:00
OUTPUT_BIN_DIR : bin64
- QT_PATH : C:\Qt\5.12\msvc2017\bin
2018-11-25 03:40:08 +00:00
PLATFORM : x86
2018-11-26 00:56:49 +00:00
OUTPUT_BIN_DIR : bin32
2018-11-22 09:04:36 +00:00
clone_folder: c:\dev\labrador
2018-11-22 09:10:55 +00:00
clone_depth: 1
2018-11-25 03:30:12 +00:00
configuration: Release
2018-11-22 09:01:16 +00:00
2019-04-02 11:45:15 +01:00
skip_tags: true
2018-11-25 02:12:53 +00:00
branches:
only:
- master
2018-11-22 09:01:16 +00:00
init:
2018-11-25 03:30:12 +00:00
- set PATH=%QT_PATH%;%PATH%
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
2018-11-25 01:56:24 +00:00
2018-11-22 09:01:16 +00:00
before_build:
- cd c:\dev\labrador\Desktop_Interface
build_script:
2019-04-01 11:09:58 +01:00
- ps: $env:GIT_HASH_SHORT=$(git rev-parse --short HEAD)
2019-04-01 11:38:27 +01:00
- qmake CONFIG+=release DEFINES+=GIT_HASH_SHORT=%GIT_HASH_SHORT%
2018-11-25 02:47:26 +00:00
- nmake
2018-11-25 01:52:42 +00:00
2018-11-26 03:40:08 +00:00
after_build:
2018-11-26 01:07:28 +00:00
- windeployqt bin\Labrador.exe
- del bin\vcredist*.exe
2018-11-26 01:12:18 +00:00
- del bin\*.pdb
2018-11-26 03:40:08 +00:00
artifacts:
- path: Desktop_Interface\bin
name: Labrador_%PLATFORM%
type: zip
2018-11-26 03:40:22 +00:00
on_success:
2018-11-26 00:56:49 +00:00
- cd C:\dev
- git clone --depth 1 https://github.com/EspoTek/Labrador-win-builder
2018-11-26 01:39:55 +00:00
- cd Labrador-win-builder
2018-11-26 02:11:19 +00:00
- git config --global credential.helper store
- ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
2018-11-26 01:54:59 +00:00
- git config --global user.email "admin@espotek.com"
- git config --global user.name "Chris Esposito"
- git checkout master
2018-11-26 00:56:49 +00:00
- 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
2018-11-26 01:13:42 +00:00
matrix:
fast_finish: true