Deploy windows build from AppVeyor to Bintray.
--HG-- branch : develop
This commit is contained in:
parent
dfae4ef5e0
commit
cbd125b0b0
54
appveyor.yml
54
appveyor.yml
|
@ -43,78 +43,97 @@ environment:
|
||||||
QMAKE_GENERATOR: "MinGW Makefiles"
|
QMAKE_GENERATOR: "MinGW Makefiles"
|
||||||
MINGW_PATH: C:\Qt\Tools\mingw530_32\bin
|
MINGW_PATH: C:\Qt\Tools\mingw530_32\bin
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: true
|
||||||
- QT5: Qt\5.7\msvc2015_64
|
- QT5: Qt\5.7\msvc2015_64
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 14
|
VSVER: 14
|
||||||
PLATFORM: x64
|
PLATFORM: x64
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.7\msvc2015
|
- QT5: Qt\5.7\msvc2015
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 14
|
VSVER: 14
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.7\msvc2013_64
|
- QT5: Qt\5.7\msvc2013_64
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 12
|
VSVER: 12
|
||||||
PLATFORM: x64
|
PLATFORM: x64
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.7\msvc2013
|
- QT5: Qt\5.7\msvc2013
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 12
|
VSVER: 12
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.6\mingw49_32
|
- QT5: Qt\5.6\mingw49_32
|
||||||
QMAKE_GENERATOR: "MinGW Makefiles"
|
QMAKE_GENERATOR: "MinGW Makefiles"
|
||||||
MINGW_PATH: C:\Qt\Tools\mingw492_32\bin
|
MINGW_PATH: C:\Qt\Tools\mingw492_32\bin
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.6\msvc2015_64
|
- QT5: Qt\5.6\msvc2015_64
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 14
|
VSVER: 14
|
||||||
PLATFORM: x64
|
PLATFORM: x64
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.6\msvc2015
|
- QT5: Qt\5.6\msvc2015
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 14
|
VSVER: 14
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.6\msvc2013_64
|
- QT5: Qt\5.6\msvc2013_64
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 12
|
VSVER: 12
|
||||||
PLATFORM: x64
|
PLATFORM: x64
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.6\msvc2013
|
- QT5: Qt\5.6\msvc2013
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 12
|
VSVER: 12
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.5\mingw492_32
|
- QT5: Qt\5.5\mingw492_32
|
||||||
QMAKE_GENERATOR: "MinGW Makefiles"
|
QMAKE_GENERATOR: "MinGW Makefiles"
|
||||||
MINGW_PATH: C:\Qt\Tools\mingw492_32\bin
|
MINGW_PATH: C:\Qt\Tools\mingw492_32\bin
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.5\msvc2013_64
|
- QT5: Qt\5.5\msvc2013_64
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 12
|
VSVER: 12
|
||||||
PLATFORM: x64
|
PLATFORM: x64
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.5\msvc2013
|
- QT5: Qt\5.5\msvc2013
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 12
|
VSVER: 12
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.4\mingw491_32
|
- QT5: Qt\5.4\mingw491_32
|
||||||
QMAKE_GENERATOR: "MinGW Makefiles"
|
QMAKE_GENERATOR: "MinGW Makefiles"
|
||||||
MINGW_PATH: C:\Qt\Tools\mingw491_32\bin
|
MINGW_PATH: C:\Qt\Tools\mingw491_32\bin
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.4\msvc2013_64_opengl
|
- QT5: Qt\5.4\msvc2013_64_opengl
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 12
|
VSVER: 12
|
||||||
PLATFORM: x64
|
PLATFORM: x64
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.4\msvc2013_opengl
|
- QT5: Qt\5.4\msvc2013_opengl
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 12
|
VSVER: 12
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.3\mingw482_32
|
- QT5: Qt\5.3\mingw482_32
|
||||||
QMAKE_GENERATOR: "MinGW Makefiles"
|
QMAKE_GENERATOR: "MinGW Makefiles"
|
||||||
MINGW_PATH: C:\Qt\Tools\mingw482_32\bin
|
MINGW_PATH: C:\Qt\Tools\mingw482_32\bin
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.3\msvc2013_64_opengl
|
- QT5: Qt\5.3\msvc2013_64_opengl
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 12
|
VSVER: 12
|
||||||
PLATFORM: x64
|
PLATFORM: x64
|
||||||
|
DEPLOY: false
|
||||||
- QT5: Qt\5.3\msvc2013_opengl
|
- QT5: Qt\5.3\msvc2013_opengl
|
||||||
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
QMAKE_GENERATOR: "NMake Makefiles JOM"
|
||||||
VSVER: 12
|
VSVER: 12
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
|
DEPLOY: false
|
||||||
|
|
||||||
# scripts that are called at very beginning, before repo cloning
|
# scripts that are called at very beginning, before repo cloning
|
||||||
init:
|
init:
|
||||||
|
@ -122,10 +141,6 @@ init:
|
||||||
- path
|
- path
|
||||||
- set QTDIR=C:\%QT5%
|
- set QTDIR=C:\%QT5%
|
||||||
- set PATH=%QTDIR%\bin;%QTDIR%\include;C:\Tools\PsTools;C:\Windows\system32;C:\Windows;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Mercurial\
|
- set PATH=%QTDIR%\bin;%QTDIR%\include;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"))
|
- 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 NOT "%QMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%"
|
||||||
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using MinGW"
|
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using MinGW"
|
||||||
|
@ -156,10 +171,6 @@ build_script:
|
||||||
- qmake ..\Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings
|
- qmake ..\Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings
|
||||||
- if not "%QMAKE_GENERATOR%" == "MinGW Makefiles" (nmake -s) 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:
|
|
||||||
#- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" mingw32-make install
|
|
||||||
|
|
||||||
# to run your custom scripts instead of automatic tests
|
# to run your custom scripts instead of automatic tests
|
||||||
test_script:
|
test_script:
|
||||||
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" (mingw32-make -s check TESTARGS="-silent")
|
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" (mingw32-make -s check TESTARGS="-silent")
|
||||||
|
@ -184,3 +195,30 @@ notifications:
|
||||||
on_build_success: false
|
on_build_success: false
|
||||||
on_build_failure: true
|
on_build_failure: true
|
||||||
on_build_status_changed: true
|
on_build_status_changed: true
|
||||||
|
|
||||||
|
#---------------------------------#
|
||||||
|
# deployment #
|
||||||
|
#---------------------------------#
|
||||||
|
|
||||||
|
# prepare to deploy
|
||||||
|
after_test:
|
||||||
|
- if "%DEPLOY%" == "true" (mingw32-make install)
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
- path: build/package/valentina
|
||||||
|
name: valentina-win-$(APPVEYOR_REPO_COMMIT)
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
- provider: BinTray
|
||||||
|
username: dismine
|
||||||
|
api_key:
|
||||||
|
secure: dTA+b2ZVGYA7RY4ZNZwOrApyKSej12fVgRTIw557yn0gVmCSukMxjMFLCIq7Qvyq
|
||||||
|
subject: dismine
|
||||||
|
repo: valentina_appveyor
|
||||||
|
package: valentina-win_auto-upload
|
||||||
|
publish: true
|
||||||
|
override: true
|
||||||
|
version: 0.5
|
||||||
|
on:
|
||||||
|
DEPLOY: true
|
||||||
|
artifact: valentina-win-$(APPVEYOR_REPO_COMMIT)
|
||||||
|
|
|
@ -8,11 +8,7 @@ if %ARCHITECTURE%==32BIT set nsis_path="C:/Program Files/Inno Setup 5/iscc.exe"
|
||||||
if %ARCHITECTURE%==64BIT set nsis_path="C:/Program Files (x86)/Inno Setup 5/iscc.exe"
|
if %ARCHITECTURE%==64BIT set nsis_path="C:/Program Files (x86)/Inno Setup 5/iscc.exe"
|
||||||
|
|
||||||
if not exist %nsis_path% (
|
if not exist %nsis_path% (
|
||||||
SET package_error="Package was not created!"
|
echo Coudn't find Inno Setup. Package will not be created.
|
||||||
SET /P promt="Coudn't find Inno Setup. Do you want to continue?[Y\N]"
|
|
||||||
IF "%promt%" == "Y" GOTO CONTINUE
|
|
||||||
IF "%promt%" == "y" GOTO CONTINUE
|
|
||||||
ELSE GOTO ONEXIT
|
|
||||||
)
|
)
|
||||||
|
|
||||||
:CONTINUE
|
:CONTINUE
|
||||||
|
@ -74,7 +70,6 @@ echo Failed to make the first run qmake!
|
||||||
@pause
|
@pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
:ONEXIT
|
:ONEXIT
|
||||||
echo Done! %package_error%
|
echo Done!
|
||||||
@pause
|
@pause
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user