forked from pencil2d/pencil
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
62 lines (53 loc) · 1.9 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
image: Visual Studio 2019
configuration:
- Release
environment:
MSBUILD_FLAGS: /verbosity:minimal
matrix:
# MSVC x86
- platform: x86
qt: 5.12\msvc2017
PYTHON: "C:\\Python35"
PLATFORM_: "x86"
# MSVC x64
- platform: amd64
qt: 5.12\msvc2017_64
PYTHON: "C:\\Python35"
PLATFORM_: "amd64"
skip_commits:
files:
- '*.md'
- docs/*
install:
- set PYTHON3="%PYTHON%\python.exe"
- set UseEnv=true
- "%PYTHON3% -m pip freeze > requirements.txt"
- "%PYTHON3% -m pip install -r requirements.txt"
- "%PYTHON3% -m pip install setuptools"
- "%PYTHON3% -m pip install virtualenvwrapper"
- "%PYTHON3% -m pip install --upgrade oauth2client"
- "%PYTHON3% -m pip install --upgrade google-api-python-client"
- "%PYTHON3% -V"
- set QTDIR=C:\Qt\%qt%
- set PATH=%PATH%;%QTDIR%\bin;C:\MinGW\bin
before_build:
- echo %PLATFORM_%
- echo %APPVEYOR_BUILD_FOLDER%
- qmake --version
- md build
- cd build
- if %PLATFORM_%==x86 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
- if %PLATFORM_%==amd64 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- if NOT %APPVEYOR_REPO_BRANCH%==release call qmake "%APPVEYOR_BUILD_FOLDER%\pencil2d.pro" CONFIG+=GIT CONFIG+=Release CONFIG+=PENCIL2D_NIGHTLY
- if %APPVEYOR_REPO_BRANCH%==release call qmake "%APPVEYOR_BUILD_FOLDER%\pencil2d.pro" CONFIG+=GIT CONFIG+=Release CONFIG+=PENCIL2D_RELEASE
build_script:
- nmake
after_build:
- set upload=no
- if %APPVEYOR_REPO_BRANCH%==master set upload=yes
- if %APPVEYOR_REPO_BRANCH%==release set upload=yes
- if "%FORCE_NIGHTLY_UPLOAD%"=="yes" set upload=yes
- powershell ..\util\after-build.ps1 -upload %upload% -platform %PLATFORM_% -branch %APPVEYOR_REPO_BRANCH%
test_script:
- echo "Running tests"
- tests\bin\tests.exe