forked from cnr-isti-vclab/vcglib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
59 lines (52 loc) · 1.65 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
branches:
only:
- devel
# Build worker image (VM template)
image: Visual Studio 2015
# clone directory
clone_folder: c:\projects\vcglib
# Build Configuration, i.e. Debug, Release, etc.
configuration:
- release
# - debug
environment:
matrix:
# MinGW 32bit
- QTDIR: C:\Qt\5.6\mingw49_32
SPEC: win32-g++
COMPILER: mingw32-make
#ARTIFACT: $(APPVEYOR_PROJECT_NAME)-%APPVEYOR_REPO_TAG_NAME%.%APPVEYOR_BUILD_NUMBER%-win32.zip
#ARTIFACT: $(APPVEYOR_PROJECT_NAME)-%APPVEYOR_REPO_TAG_NAME%-win32.zip
# Microsoft Visual Studio 64bit
- QTDIR: C:\Qt\5.6\msvc2015_64
VSVER: 14.0
SPEC: win32-msvc2015
COMPILER: nmake
#ARTIFACT: $(APPVEYOR_PROJECT_NAME)-%APPVEYOR_REPO_TAG_NAME%.%APPVEYOR_BUILD_NUMBER%-win64.zip
#ARTIFACT: $(APPVEYOR_PROJECT_NAME)-%APPVEYOR_REPO_TAG_NAME%-win64.zip
# Set paths, etc.
before_build:
# Set paths
#- '%QTDIR%\bin\qtenv2.bat'
- call "%QTDIR%\bin\qtenv2.bat"
# Show qmake and make version
- qmake -v
- if %COMPILER%==mingw32-make call %COMPILER% -v
# Detect architecture (32bit or 64bit)
- if %QTDIR:_64=%==%QTDIR% (set ARCH=x86) else (set ARCH=x64)
# Set more... if Microsoft Visual Studio
- if %COMPILER%==nmake call "%ProgramFiles(x86)%\Microsoft Visual Studio %VSVER%\VC\vcvarsall.bat" %ARCH%
# Show build folder
#- echo %APPVEYOR_BUILD_FOLDER%
#- echo %CONFIGURATION%
# To run your custom scripts instead of automatic MSBuild
build_script:
# Go to clone directory
- cd %APPVEYOR_BUILD_FOLDER%
- cd apps
- cd sample
# Run qmake
- qmake sample.pro -r -spec %SPEC% "CONFIG+=%CONFIGURATION%"
# Run compiler
#- '%COMPILER%'
- call %COMPILER%