JKQtPlotter/appveyor.yml

83 lines
2.4 KiB
YAML
Raw Normal View History

2018-12-20 01:58:18 +08:00
version: 0.{build}-{branch}
image:
- Visual Studio 2017
environment:
global:
QTVER: 5.11
ARCH: x86
QMAKESPEC: win32-msvc
MAKETOOL: jom
VSVER: 0
JOMDIR: C:\Qt\Tools\QtCreator\bin
MINGWDIR: C:\Qt\Tools\mingw530_32
matrix:
- QTABI: msvc2017_64
ARCH: x64
VSVER: 2017
- QTABI: msvc2015
VSVER: 14
- QTABI: mingw53_32
QMAKESPEC: win32-g++
MAKETOOL: mingw32-make
skip_tags: true
build:
parallel: true
verbosity: detailed
configuration:
- release
- debug
2018-12-20 01:58:18 +08:00
install:
- IF %VSVER% GTR 14 (
call "C:\Program Files (x86)\Microsoft Visual Studio\%VSVER%\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
) ELSE (
IF %VSVER% GTR 0 (
call "C:\Program Files (x86)\Microsoft Visual Studio "%VSVER%".0\VC\vcvarsall.bat" %ARCH%
) ELSE (
set "PATH=%MINGWDIR%\bin;%PATH%"
)
)
- set PATH=C:\Qt\%QTVER%\%QTABI%\bin;%JOMDIR%;%PATH%
- echo "BUILD ID Qt%QTVER%_%QTABI%_%APPVEYOR_BUILD_VERSION%_%CONFIGURATION%"
build_script:
# - dir "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include"
# - type "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\random"
# - dir "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE"
# - type "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\random"
2018-12-20 01:58:18 +08:00
- mkdir build
- cd build
- echo "Call QMake..."
2018-12-30 00:01:53 +08:00
- qmake.exe CONFIG+=%CONFIGURATION% ..\JKQtPlotterBuildAllExamples.pro
2018-12-20 01:58:18 +08:00
- echo "Build..."
- call %MAKETOOL%
- cd ..
2019-01-19 23:25:31 +08:00
#artifacts:
# - path: build\staticlib\**\*.a
# name: staticlib %QTVER%%QTABI%
# - path: build\sharedlib\**\*.a
# name: sharedlib %QTVER%%QTABI%
# - path: build\staticlib\**\*.lib
# name: staticlib %QTVER%%QTABI%
# - path: build\sharedlib\**\*.lib
# name: sharedlib %QTVER%%QTABI%
# - path: build\sharedlib\**\*.dll
# name: dll %QTVER%%QTABI%
2019-01-19 23:14:49 +08:00
2018-12-20 01:58:18 +08:00
# # remote desktop connection on init
# init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# # remote desktop connection on finish and block build to not destroy VM
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))