Labrador/.appveyor.yml

61 lines
1.5 KiB
YAML

version: build{build}
image: Visual Studio 2015
environment:
access_token:
secure: DXAumCpZjJ3erz0OmBJybIJTwux9uSrdtqKtezd4wI9b2ELz3NELPwZfp+WfYKtb
matrix:
- QT_PATH : C:\Qt\5.11.2\msvc2015_64\bin
PLATFORM : amd64
OUTPUT_BIN_DIR : bin64
- QT_PATH : C:\Qt\5.11.2\msvc2015\bin
PLATFORM : x86
OUTPUT_BIN_DIR : bin32
clone_folder: c:\dev\labrador
clone_depth: 1
configuration: Release
branches:
only:
- master
init:
- set PATH=%QT_PATH%;%PATH%
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
before_build:
- cd c:\dev\labrador\Desktop_Interface
build_script:
- qmake
- 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):x-oauth-basic@github.com`n"
- git config --global user.email "admin@espotek.com"
- 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