mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Merge pull request #2301 from srazi/ci_faster_mac_win_builds
Ci faster mac win builds
This commit is contained in:
commit
5fe5937a11
23
.travis.yml
23
.travis.yml
|
@ -32,19 +32,26 @@ install:
|
|||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
echo "Calling brew update...";
|
||||
brew update;
|
||||
brew outdated openssl || brew upgrade openssl;
|
||||
brew install ccache;
|
||||
PATH="/usr/local/opt/ccache/libexec:$PATH";
|
||||
|
||||
if [[ "$QT" == "qt58" ]]; then
|
||||
QT_VER=5.8;
|
||||
export QTDIR="$HOME/Qt/$QT_VER/clang_64";
|
||||
brew outdated openssl || brew upgrade openssl;
|
||||
QT_INSTALLER_FILE_NAME=qt-opensource-mac-x64-clang-$QT_VER.0;
|
||||
wget "http://download.qt.io/official_releases/qt/$QT_VER/$QT_VER.0/$QT_INSTALLER_FILE_NAME.dmg";
|
||||
hdiutil attach -noverify $QT_INSTALLER_FILE_NAME.dmg;
|
||||
QT_INSTALLER=/Volumes/$QT_INSTALLER_FILE_NAME/$QT_INSTALLER_FILE_NAME.app/Contents/MacOS/$QT_INSTALLER_FILE_NAME;
|
||||
echo "Silently installing Qt...";
|
||||
travis_wait $QT_INSTALLER --script $QZ_DIR/mac/qt-mac-silent-install.qs;
|
||||
if [ -z "$TRAVIS_TAG" ]; then
|
||||
echo "Using Homebrew Qt...";
|
||||
brew install qt5;
|
||||
export QTDIR=/usr/local/opt/qt5;
|
||||
else
|
||||
echo "Using official Qt installer...";
|
||||
QT_INSTALLER_FILE_NAME=qt-opensource-mac-x64-clang-$QT_VER.0;
|
||||
wget "http://download.qt.io/official_releases/qt/$QT_VER/$QT_VER.0/$QT_INSTALLER_FILE_NAME.dmg";
|
||||
hdiutil attach -noverify $QT_INSTALLER_FILE_NAME.dmg;
|
||||
QT_INSTALLER=/Volumes/$QT_INSTALLER_FILE_NAME/$QT_INSTALLER_FILE_NAME.app/Contents/MacOS/$QT_INSTALLER_FILE_NAME;
|
||||
echo "Silently installing Qt...";
|
||||
travis_wait $QT_INSTALLER --script $QZ_DIR/mac/qt-mac-silent-install.qs;
|
||||
export QTDIR="$HOME/Qt/$QT_VER/clang_64";
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
31
appveyor.yml
31
appveyor.yml
|
@ -1,4 +1,5 @@
|
|||
version: 2.1.99.{build}-{branch}
|
||||
shallow_clone: true
|
||||
|
||||
cache:
|
||||
- windows/dependencies
|
||||
|
@ -91,11 +92,13 @@ after_build:
|
|||
# prepare qtwebengine_dictionaries
|
||||
- mkdir qtwebengine_dictionaries
|
||||
- cd qtwebengine_dictionaries
|
||||
- 7z x ..\..\dependencies\master.tar.gz
|
||||
- 7z x master.tar
|
||||
- mkdir doc
|
||||
- move README* doc\
|
||||
- move COPYING* doc\
|
||||
- IF /I "%APPVEYOR_REPO_TAG%" == "true" (
|
||||
7z x "%QZ_DIR%\windows\dependencies\master.tar.gz" &&
|
||||
7z x "master.tar" &&
|
||||
mkdir "doc" &&
|
||||
move README* "doc\" &&
|
||||
move COPYING* "doc\"
|
||||
)
|
||||
- cd %QZ_DIR%\windows
|
||||
# set paths
|
||||
- set OPENSSL_BIN_DIR="%OPENSSL_DIR%\bin"
|
||||
|
@ -104,10 +107,12 @@ after_build:
|
|||
- IF /I "%ARCH%" == "x64" (set INSTALLER_VERSION="%QZ_VER% x64" && set ICU_BIN_DIR="%QZ_DIR%\windows\wininstall\icu\bin64") else (set INSTALLER_VERSION="%QZ_VER%")
|
||||
- set QTWEBENGINE_DICTIONARIES_DIR="%QZ_DIR%\windows\wininstall\qtwebengine_dictionaries"
|
||||
# make installer
|
||||
- IF /I "%PORTABLE_BUILD%" == "true" (
|
||||
call "C:\Program Files (x86)\NSIS\makensis.exe" /X"Unicode true" /DCUSTOM=1 /DPORTABLE=1 /DVERSION="%QZ_VER% Portable" /DARCH=%ARCH% /DMSVC_VER=%VSVER%0 /DOPENSSL_BIN_DIR=%OPENSSL_BIN_DIR% /DMSVC_REDIST_DIR=%MSVC_REDIST_DIR% /DQZ_BIN_DIR=%QZ_DIR%\bin /DICU_BIN_DIR=%ICU_BIN_DIR% /DQT_DIR=%QTDIR% /DQT_BIN_DIR=%QTDIR%\bin /DQT_PLUGINS_DIR=%QTDIR%\plugins /DQTWEBENGINE_DICTIONARIES_DIR=%QTWEBENGINE_DICTIONARIES_DIR% installer.nsi
|
||||
) else (
|
||||
call "C:\Program Files (x86)\NSIS\makensis.exe" /X"Unicode true" /DCUSTOM=1 /DVERSION=%INSTALLER_VERSION% /DARCH=%ARCH% /DMSVC_VER=%VSVER%0 /DOPENSSL_BIN_DIR=%OPENSSL_BIN_DIR% /DMSVC_REDIST_DIR=%MSVC_REDIST_DIR% /DQZ_BIN_DIR=%QZ_DIR%\bin /DICU_BIN_DIR=%ICU_BIN_DIR% /DQT_DIR=%QTDIR% /DQT_BIN_DIR=%QTDIR%\bin /DQT_PLUGINS_DIR=%QTDIR%\plugins /DQTWEBENGINE_DICTIONARIES_DIR=%QTWEBENGINE_DICTIONARIES_DIR% installer.nsi
|
||||
- IF /I "%APPVEYOR_REPO_TAG%" == "true" (
|
||||
IF /I "%PORTABLE_BUILD%" == "true" (
|
||||
call "C:\Program Files (x86)\NSIS\makensis.exe" /X"Unicode true" /DCUSTOM=1 /DPORTABLE=1 /DVERSION="%QZ_VER% Portable" /DARCH=%ARCH% /DMSVC_VER=%VSVER%0 /DOPENSSL_BIN_DIR=%OPENSSL_BIN_DIR% /DMSVC_REDIST_DIR=%MSVC_REDIST_DIR% /DQZ_BIN_DIR=%QZ_DIR%\bin /DICU_BIN_DIR=%ICU_BIN_DIR% /DQT_DIR=%QTDIR% /DQT_BIN_DIR=%QTDIR%\bin /DQT_PLUGINS_DIR=%QTDIR%\plugins /DQTWEBENGINE_DICTIONARIES_DIR=%QTWEBENGINE_DICTIONARIES_DIR% installer.nsi
|
||||
) else (
|
||||
call "C:\Program Files (x86)\NSIS\makensis.exe" /X"Unicode true" /DCUSTOM=1 /DVERSION=%INSTALLER_VERSION% /DARCH=%ARCH% /DMSVC_VER=%VSVER%0 /DOPENSSL_BIN_DIR=%OPENSSL_BIN_DIR% /DMSVC_REDIST_DIR=%MSVC_REDIST_DIR% /DQZ_BIN_DIR=%QZ_DIR%\bin /DICU_BIN_DIR=%ICU_BIN_DIR% /DQT_DIR=%QTDIR% /DQT_BIN_DIR=%QTDIR%\bin /DQT_PLUGINS_DIR=%QTDIR%\plugins /DQTWEBENGINE_DICTIONARIES_DIR=%QTWEBENGINE_DICTIONARIES_DIR% installer.nsi
|
||||
)
|
||||
)
|
||||
|
||||
artifacts:
|
||||
|
@ -140,3 +145,11 @@ deploy:
|
|||
# on_build_success: false
|
||||
# on_build_failure: false
|
||||
# on_build_status_changed: true
|
||||
|
||||
# # remote desktop connection on init
|
||||
# init:
|
||||
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||
|
||||
# # remote desktop connection on finish and block build to not destroy VM
|
||||
# on_finish:
|
||||
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user