2018-01-30 21:49:43 +00:00
|
|
|
version: '1.2-git-{build}'
|
2017-10-03 12:42:31 +00:00
|
|
|
skip_tags: true
|
|
|
|
image: 'Visual Studio 2015'
|
|
|
|
clone_depth: 1
|
|
|
|
|
|
|
|
# Build configuration
|
|
|
|
configuration:
|
|
|
|
- Release
|
|
|
|
|
|
|
|
# Branches to build
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2017-11-25 11:51:46 +00:00
|
|
|
- /v\d.*/
|
2017-10-03 12:42:31 +00:00
|
|
|
|
|
|
|
# Environment
|
|
|
|
environment:
|
2017-10-15 19:19:48 +00:00
|
|
|
NINJA_URL: https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip
|
2018-01-27 10:40:26 +00:00
|
|
|
QTDIR: 'C:\Qt\5.10.0\msvc2015_64'
|
|
|
|
QT32PATH: 'C:\Qt\5.10.0\msvc2015'
|
|
|
|
QT64PATH: 'C:\Qt\5.10.0\msvc2015_64'
|
2017-10-15 19:19:48 +00:00
|
|
|
VSVARSALLPATH: 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat'
|
2017-10-15 20:53:09 +00:00
|
|
|
matrix:
|
2018-02-09 19:51:30 +00:00
|
|
|
# Build: qmake vs2015 x86 shared
|
2018-02-27 08:57:53 +00:00
|
|
|
- ARCH: x86
|
2018-02-25 19:17:03 +00:00
|
|
|
PYTHON: 'C:\Python36'
|
2018-02-09 19:51:30 +00:00
|
|
|
QMAKE: 1
|
|
|
|
# Build: qmake vs2015 x64 shared
|
2018-02-27 08:57:53 +00:00
|
|
|
- ARCH: x64
|
2018-02-25 19:17:03 +00:00
|
|
|
PYTHON: 'C:\Python36-x64'
|
2018-02-09 19:51:30 +00:00
|
|
|
QMAKE: 1
|
|
|
|
# Build: meson ninja x64 static
|
2018-02-27 08:57:53 +00:00
|
|
|
- ARCH: x64
|
2018-02-25 19:17:03 +00:00
|
|
|
PYTHON: 'C:\Python36-x64'
|
2018-02-09 19:51:30 +00:00
|
|
|
MESON: 1
|
|
|
|
BACKEND: ninja
|
|
|
|
|
|
|
|
install:
|
2018-02-27 08:57:53 +00:00
|
|
|
- cmd: set "PATH=%CD%;%PYTHON%;%PATH%"
|
|
|
|
- cmd: call "%VSVARSALLPATH%" %ARCH%
|
|
|
|
- cmd: if "%ARCH%" == "x64" ( set "PATH=%QT64PATH%\bin;%PATH%" && set "BITS=64" ) else ( set "PATH=%QT32PATH%\bin;%PATH%" && set "BITS=32" )
|
|
|
|
- cmd: python -m pip install meson
|
|
|
|
- cmd: powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget %NINJA_URL% -OutFile ninja.zip" && unzip ninja.zip
|
2018-02-09 19:51:30 +00:00
|
|
|
# Artifacts
|
2018-02-27 08:57:53 +00:00
|
|
|
- cmd: if defined MESON ( set "ARTIFACT_NAME=Cutter_%ARCH%_static" ) else ( set "ARTIFACT_NAME=Cutter_%ARCH%" )
|
|
|
|
- cmd: if defined MESON ( set "ARTIFACT_PATH=dist%BITS%" ) else ( set "ARTIFACT_PATH=build%BITS%\cutter" )
|
2017-10-03 12:42:31 +00:00
|
|
|
|
|
|
|
before_build:
|
2018-02-27 08:57:53 +00:00
|
|
|
- cmd: git submodule update --init
|
|
|
|
- cmd: if defined QMAKE ( prepare_r2.bat )
|
|
|
|
|
2017-10-03 12:42:31 +00:00
|
|
|
|
|
|
|
# Build config
|
2017-10-15 19:19:48 +00:00
|
|
|
build_script:
|
2018-02-27 08:57:53 +00:00
|
|
|
- cmd: if defined QMAKE ( build.bat )
|
|
|
|
- cmd: if defined MESON ( python meson.py --dist=%ARTIFACT_PATH% --backend=%BACKEND% )
|
2017-10-08 06:23:22 +00:00
|
|
|
|
2017-10-03 12:42:31 +00:00
|
|
|
# Tests
|
|
|
|
test: off
|
2017-10-08 06:23:22 +00:00
|
|
|
|
|
|
|
# Artifacts
|
|
|
|
artifacts:
|
2018-02-27 08:57:53 +00:00
|
|
|
- path: "%ARTIFACT_PATH%"
|
2018-02-09 19:51:30 +00:00
|
|
|
name: "%ARTIFACT_NAME%"
|
2017-10-15 20:53:09 +00:00
|
|
|
|
|
|
|
deploy:
|
2017-10-17 09:56:04 +00:00
|
|
|
release: cutter-$(appveyor_build_version)
|
|
|
|
description: 'Cutter binaries (Windows)'
|
2017-10-15 20:53:09 +00:00
|
|
|
provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: 2SmsqS2RaX2N5c9UwUcfBwNmMX64FfPAZFShLyxIkZXiC8vLaYCHToWxBYEuWRSk
|
2017-10-16 08:32:27 +00:00
|
|
|
artifact: Cutter%BITS%
|
2017-11-20 20:37:00 +00:00
|
|
|
draft: true
|
|
|
|
prerelease: false
|
2017-10-15 20:53:09 +00:00
|
|
|
on:
|
2017-11-20 20:37:00 +00:00
|
|
|
appveyor_repo_tag: true
|