Skip to content

Commit

Permalink
add .appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vldpro committed Jun 6, 2018
1 parent 7b7d9b5 commit 2eace88
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Before read or modify this script, please check README.md
# for understanding all build steps
version: '{branch}-{build}'


build:
verbosity: minimal


environment:
ShadowBuildDir: C:\projects\edge-firmware-updater\build_windows_install
QtBinPath: C:\Qt\5.9\msvc2015\bin
VisualStudio: "Microsoft Visual Studio 14.0"

matrix:
- Build: 'Release'
Config: release
- Build: 'Debug'
Config: debug


install:
# Set Visual Studio build environment
- call "%ProgramFiles(x86)%\%VISUALSTUDIO%\VC\vcvarsall.bat" x86
- ps: |
# Set Path (Add Visual Studio and Qt)
$Env:Path = "C:\Qt\Tools\QtCreator\bin;${Env:QtBinPath};${Env:Path}"
build_script:
# Get logical cores count
- ps: |
$Env:Cores = Get-WmiObject -class Win32_Processor | `
Select-Object -ExpandProperty NumberOfLogicalProcessors
# Generate makefile
- mkdir "%SHADOWBUILDDIR%"
- cd "%SHADOWBUILDDIR%"
- qmake "%APPVEYOR_BUILD_FOLDER%\devlib.pro" CONFIG+=%CONFIG%

# Build
- jom -j%CORES%

0 comments on commit 2eace88

Please sign in to comment.