blob: 89d968b83b861c9d84a301434db391c407c785f8 (
plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
#
# Required environment variables in the travis config
#
# DOCKER_USERNAME
#
language: cpp
git:
submodules: false
env:
global:
- QT_INSTALL_DIR=~/Qt
stages:
- name: Build Qbs and and run autotests
jobs:
include:
- &build-on-bionic
stage: Build Qbs and and run autotests
name: With Qbs on Ubuntu bionic (linux_gcc64)
env:
SERVICE=bionic
services:
- docker
before_install:
- docker-compose pull ${SERVICE}
script:
- docker-compose run --rm ${SERVICE} scripts/build-qbs-with-qbs.sh
- <<: *build-on-bionic
name: With QMake on Ubuntu bionic (linux_gcc64)
script:
- docker-compose run --rm ${SERVICE} scripts/build-qbs-with-qmake.sh
- <<: *build-on-bionic
name: With Qbs on Ubuntu bionic (mingw32_w64)
script:
- docker-compose run --rm ${SERVICE} qbs build profile:qt-mingw32_w64
- &build-on-macos
stage: Build Qbs and and run autotests
name: With Qbs on macOS (xcode 10.2)
os: osx
osx_image: xcode10.2
addons:
homebrew:
packages:
- p7zip
update: true
env:
# Address sanitizer slows autotests down too much.
# We would hit the maximum build time on Travis.
BUILD_OPTIONS=modules.qbsbuildconfig.enableAddressSanitizer:false
QMAKE_PATH=${QT_INSTALL_DIR}/5.12.4/clang_64/bin/qmake
PATH="${QT_INSTALL_DIR}/Qt Creator.app/Contents/MacOS:${PATH}"
QBS_BUILD_PROFILE=qt
before_install:
- ./scripts/install-qt.sh -d ${QT_INSTALL_DIR} --version 5.12.4 qtbase qtdeclarative qttools qtscript
- ./scripts/install-qt.sh -d ${QT_INSTALL_DIR} --version 4.9.2 qtcreator
- pip2 install --user beautifulsoup4 lxml
script:
- qbs setup-toolchains --detect
- qbs setup-qt ${QMAKE_PATH} qt
- qbs config qt.baseProfile xcode-macosx-x86_64
- qbs config defaultProfile qt
- scripts/build-qbs-with-qbs.sh
# Disabled because of https://bugreports.qt.io/browse/QBS-1456
# - <<: *build-on-macos
# name: With Qbs on macOS (xcode 9.4)
# osx_image: xcode9.4
- &build-on-windows
stage: Build Qbs and and run autotests
name: With Qbs on Windows (Visual Studio 2017)
os: windows
env:
# Need to build in release mode. Otherwise autotests would be too slow.
BUILD_OPTIONS="config:release"
QT_INSTALL_DIR=C:/Qt
QMAKE_PATH=${QT_INSTALL_DIR}/5.12.4/msvc2017_64/bin/qmake.exe
PATH="/c/Qt/Tools/QtCreator/bin:${PATH}"
WITH_DOCS=0
QBS_BUILD_PROFILE=qt
before_install:
# Disable unnecessary background services which tend to consume
# a lot of resources
- powershell -Command 'Set-MpPreference -DisableRealtimeMonitoring $true'
- powershell -Command 'Set-MpPreference -DisableArchiveScanning $true'
- powershell -Command 'Set-MpPreference -DisableBehaviorMonitoring $true'
- powershell -Command 'sc.exe config TrustedInstaller start=disabled; sc.exe stop TrustedInstaller'
- powershell -Command 'sc.exe config wuauserv start=disabled; sc.exe stop wuauserv'
- powershell -Command 'Add-MpPreference -ExclusionPath C:\'
- powershell -Command 'Add-MpPreference -ExclusionProcess qbs.exe'
- powershell -Command 'Add-MpPreference -ExclusionProcess cl.exe'
- powershell -Command 'Add-MpPreference -ExclusionProcess link.exe'
# Install Qbs and Qt
- ./scripts/install-qt.sh -d ${QT_INSTALL_DIR} --version 5.12.4 --toolchain win64_msvc2017_64 qtbase qtdeclarative qttools qtscript
- ./scripts/install-qt.sh -d ${QT_INSTALL_DIR} --version 4.9.2 qtcreator
script:
- qbs setup-toolchains --detect
- qbs setup-qt ${QMAKE_PATH} qt
- qbs config qt.baseProfile MSVC2017-x86
- qbs config defaultProfile qt
- scripts/build-qbs-with-qbs.sh
|