Skip to content

Commit 2eace88

Browse files
committed
add .appveyor.yml
1 parent 7b7d9b5 commit 2eace88

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.appveyor.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Before read or modify this script, please check README.md
2+
# for understanding all build steps
3+
version: '{branch}-{build}'
4+
5+
6+
build:
7+
verbosity: minimal
8+
9+
10+
environment:
11+
ShadowBuildDir: C:\projects\edge-firmware-updater\build_windows_install
12+
QtBinPath: C:\Qt\5.9\msvc2015\bin
13+
VisualStudio: "Microsoft Visual Studio 14.0"
14+
15+
matrix:
16+
- Build: 'Release'
17+
Config: release
18+
- Build: 'Debug'
19+
Config: debug
20+
21+
22+
install:
23+
# Set Visual Studio build environment
24+
- call "%ProgramFiles(x86)%\%VISUALSTUDIO%\VC\vcvarsall.bat" x86
25+
- ps: |
26+
# Set Path (Add Visual Studio and Qt)
27+
$Env:Path = "C:\Qt\Tools\QtCreator\bin;${Env:QtBinPath};${Env:Path}"
28+
29+
30+
build_script:
31+
# Get logical cores count
32+
- ps: |
33+
$Env:Cores = Get-WmiObject -class Win32_Processor | `
34+
Select-Object -ExpandProperty NumberOfLogicalProcessors
35+
36+
# Generate makefile
37+
- mkdir "%SHADOWBUILDDIR%"
38+
- cd "%SHADOWBUILDDIR%"
39+
- qmake "%APPVEYOR_BUILD_FOLDER%\devlib.pro" CONFIG+=%CONFIG%
40+
41+
# Build
42+
- jom -j%CORES%

0 commit comments

Comments
 (0)