54 lines
No EOL
2.1 KiB
YAML
54 lines
No EOL
2.1 KiB
YAML
language: cpp
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- dev
|
|
|
|
jobs:
|
|
include:
|
|
- name: MacOS
|
|
os: osx
|
|
osx_image: xcode12.2
|
|
|
|
addons:
|
|
homebrew:
|
|
packages:
|
|
- p7zip
|
|
# - qt5
|
|
# update: true
|
|
|
|
script:
|
|
- if [ ! -f $HOME/Qt/5.14.2/clang_64/bin/qmake ]; then bash deploy/install-qt.sh -d $HOME/Qt --version 5.14.2 --toolchain clang_64 qtbase; fi
|
|
- if [ ! -f $HOME/Qt/Tools/QtInstallerFramework/4.0.1/bin/binarycreator ]; then \
|
|
curl --progress-bar -L -o QtInstallerFramework.dmg "https://download.qt.io/official_releases/qt-installer-framework/4.0.1/QtInstallerFramework-mac-x64.dmg" >&2 && \
|
|
hdiutil attach QtInstallerFramework.dmg && \
|
|
/Volumes/QtInstallerFramework-mac-x64/QtInstallerFramework-mac-x64.app/Contents/MacOS/QtInstallerFramework-mac-x64 --accept-licenses --default-answer -c install --root $HOME/Qt/Tools/QtInstallerFramework/4.0.1; \
|
|
fi
|
|
- bash deploy/build_macos.sh
|
|
|
|
- name: Windows
|
|
os: windows
|
|
|
|
script:
|
|
- choco install tree wget
|
|
- dir C:\
|
|
- tree "C:\Program Files (x86)\Microsoft Visual Studio"
|
|
- tree C:\Program Files
|
|
- bash -c "if [ ! -f /C/Qt/5.14.2/msvc2017/bin/qmake ]; then bash deploy/install-qt.sh -d /C/Qt --version 5.14.2 --toolchain win32_msvc2017 qtbase; fi"
|
|
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat"
|
|
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
|
|
- windows.bat
|
|
- QtInstallerFramework-win-x86.exe --root c:\Qt\Tools\QtInstallerFramework\4.0.1\ --accept-licenses --default-answer -c install
|
|
|
|
#before_cache:
|
|
# - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi
|
|
# # Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build
|
|
# - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then find /usr/local/Homebrew \! -regex ".+\.git.+" -delete; fi
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/Qt
|
|
- C:\Qt
|
|
# - $HOME/Library/Caches/Homebrew
|
|
# - /usr/local/Cellar/qt |