appveyour.yml updated to build the source code.
--HG-- branch : develop
This commit is contained in:
parent
9ef1ed4e22
commit
ee88e14416
56
appveyor.yml
56
appveyor.yml
|
@ -28,6 +28,9 @@ skip_tags: true
|
|||
# environment configuration #
|
||||
#---------------------------------#
|
||||
|
||||
# clone directory
|
||||
clone_folder: c:\projects\valentina
|
||||
|
||||
# set clone depth
|
||||
clone_depth: 1 # clone entire repository history if not defined
|
||||
|
||||
|
@ -39,84 +42,102 @@ environment:
|
|||
- QT5: Qt\5.7\mingw53_32
|
||||
QMAKE_GENERATOR: "MinGW Makefiles"
|
||||
MINGW_PATH: C:\Qt\Tools\mingw530_32\bin
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.7\msvc2015_64
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 14
|
||||
PLATFORM: x64
|
||||
- QT5: Qt\5.7\msvc2015
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 14
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.7\msvc2013_64
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 12
|
||||
PLATFORM: x64
|
||||
- QT5: Qt\5.7\msvc2013
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 12
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.6\mingw49_32
|
||||
QMAKE_GENERATOR: "MinGW Makefiles"
|
||||
MINGW_PATH: C:\Qt\Tools\mingw492_32\bin
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.6\msvc2015_64
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 14
|
||||
PLATFORM: x64
|
||||
- QT5: Qt\5.6\msvc2015
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 14
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.6\msvc2013_64
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 12
|
||||
PLATFORM: x64
|
||||
- QT5: Qt\5.6\msvc2013
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 12
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.5\mingw492_32
|
||||
QMAKE_GENERATOR: "MinGW Makefiles"
|
||||
MINGW_PATH: C:\Qt\Tools\mingw492_32\bin
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.5\msvc2013_64
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 12
|
||||
PLATFORM: x64
|
||||
- QT5: Qt\5.5\msvc2013
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 12
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.4\mingw491_32
|
||||
QMAKE_GENERATOR: "MinGW Makefiles"
|
||||
MINGW_PATH: C:\Qt\Tools\mingw491_32\bin
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.4\msvc2013_64_opengl
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 12
|
||||
PLATFORM: x64
|
||||
- QT5: Qt\5.4\msvc2013_opengl
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 12
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.3\mingw482_32
|
||||
QMAKE_GENERATOR: "MinGW Makefiles"
|
||||
MINGW_PATH: C:\Qt\Tools\mingw482_32\bin
|
||||
PLATFORM: x86
|
||||
- QT5: Qt\5.3\msvc2013_64_opengl
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 12
|
||||
PLATFORM: x64
|
||||
- QT5: Qt\5.3\msvc2013_opengl
|
||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||
VSVER: 12
|
||||
PLATFORM: x86
|
||||
|
||||
# scripts that are called at very beginning, before repo cloning
|
||||
init:
|
||||
# Path before
|
||||
- path
|
||||
# Installing various utilities
|
||||
#- choco install cppcheck
|
||||
#- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" choco install -y InnoSetup
|
||||
#- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" if "%PLATFORM%" == "X86" set PATH="C:\Program Files\Inno Setup 5";%PATH%
|
||||
#- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" if "%PLATFORM%" == "X64" set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
|
||||
- set QTDIR=C:\%QT5%
|
||||
- set PATH=%QTDIR%\bin;C:\Tools\PsTools;C:\Program Files\Mercurial\ #;%PATH%
|
||||
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" set PATH=%MINGW_PATH%;%PATH%
|
||||
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
|
||||
- set PATH=C:\projects\valentina\build\src\libs\vpropertyexplorer\bin;C:\projects\valentina\build\src\libs\qmuparser\bin;%PATH%
|
||||
# Set VC variables for the platform
|
||||
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if %PLATFORM% == x64 call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
|
||||
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if %PLATFORM% == x86 call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat"
|
||||
- set PATH=%QTDIR%\bin;C:\Tools\PsTools;C:\Windows\system32;C:\Windows;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Mercurial\
|
||||
# Installing various utilities
|
||||
#- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" choco install -y InnoSetup
|
||||
#- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" if "%PLATFORM%" == "x86" set PATH="C:\Program Files\Inno Setup 5";%PATH%
|
||||
#- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" if "%PLATFORM%" == "x64" set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
|
||||
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
|
||||
- if NOT "%QMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%"
|
||||
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using MinGW"
|
||||
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X86" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat"
|
||||
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
|
||||
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X64" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
|
||||
# Set VC variables for the platform
|
||||
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if %PLATFORM% == x64 call "%VSCOMNTOOLS%\..\..\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
|
||||
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if %PLATFORM% == x86 call "%VSCOMNTOOLS%\..\..\VC\bin\vcvars32.bat"
|
||||
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "x86" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat"
|
||||
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "x64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
|
||||
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "x64" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
|
||||
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" set PATH=%MINGW_PATH%;%PATH%
|
||||
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
|
||||
- set PATH=C:\projects\valentina\build\src\libs\vpropertyexplorer\bin;C:\projects\valentina\build\src\libs\qmuparser\bin;%PATH%
|
||||
# Path after
|
||||
- path
|
||||
- qmake -v
|
||||
|
@ -132,9 +153,8 @@ before_build:
|
|||
# to run your custom scripts instead of automatic MSBuild
|
||||
build_script:
|
||||
- cd build
|
||||
#- cppcheck --error-exitcode=1 --quiet --inline-suppr --template '{file}:{line}:{message}:{id}' --force --report-progress --enable=performance,portability ..\src
|
||||
- qmake ..\Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings
|
||||
- if not "%QMAKE_GENERATOR%" == "MinGW Makefiles" (nmake) else (mingw32-make -j%NUMBER_OF_PROCESSORS%)
|
||||
- if not "%QMAKE_GENERATOR%" == "MinGW Makefiles" (nmake -s) else (mingw32-make -j%NUMBER_OF_PROCESSORS%)
|
||||
|
||||
# scripts to run after build
|
||||
after_build:
|
||||
|
@ -142,7 +162,7 @@ after_build:
|
|||
|
||||
# to run your custom scripts instead of automatic tests
|
||||
test_script:
|
||||
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" (mingw32-make check)
|
||||
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" (mingw32-make -s check TESTARGS="-silent")
|
||||
|
||||
# to disable automatic tests
|
||||
#test: off
|
||||
|
|
Loading…
Reference in New Issue
Block a user