-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
88 lines (74 loc) · 3.6 KB
/
.travis.yml
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
sudo: required
dist: xenial
language: cpp
cache:
- apt
- directories:
- Package
compiler:
- g++
os:
- unix
addons:
ssh_known_hosts:
- github.com
env:
global:
- SOURCE_DIR=$TRAVIS_BUILD_DIR
- RABBITIM_USE_REPOSITORIES="TRUE"
- QMAKE=qmake
- RABBITIM_BUILD_THIRDLIBRARY="TRUE"
matrix:
# DOWNLOAD_QT:
# APT: Use apt to install from ubuntu source;
# TRUE: download from download.qt.io
# FALSE: install from https://launchpad.net/~beineri
- BUILD_TARGERT="unix" DOWNLOAD_QT=APT
- BUILD_TARGERT="unix" DOWNLOAD_QT=APT GENERATORS="Unix Makefiles"
- BUILD_TARGERT="unix" QT_VERSION_DIR=512 QT_VERSION=5.12.3 DOWNLOAD_QT=FALSE
- BUILD_TARGERT="unix" QT_VERSION_DIR=511 QT_VERSION=5.11.3 DOWNLOAD_QT=FALSE GENERATORS="Unix Makefiles" STATIC=ON
- BUILD_TARGERT="unix" BUILD_ARCH="unix" QT_VERSION_DIR=5.14 QT_VERSION=5.14.0 DOWNLOAD_QT=TRUE
- BUILD_TARGERT="unix" BUILD_ARCH="unix" QT_VERSION_DIR=5.14 QT_VERSION=5.14.0 DOWNLOAD_QT=TRUE GENERATORS="Unix Makefiles"
- BUILD_TARGERT="unix" BUILD_ARCH="unix" QT_VERSION_DIR=5.12 QT_VERSION=5.12.6 DOWNLOAD_QT=TRUE GENERATORS="Unix Makefiles"
- BUILD_TARGERT="unix" BUILD_ARCH="unix" QT_VERSION_DIR=5.13 QT_VERSION=5.13.2 DOWNLOAD_QT=TRUE STATIC=ON
# BUILD_ARCH qt 大于等于 5.14.0 可选(arm64-v8a armeabi-v7a x86_64 x86)组合
#- BUILD_TARGERT="android" BUILD_ARCH="armeabi-v7a x86" ANDROID_ARM_NEON=ON QT_VERSION_DIR=5.14 QT_VERSION=5.14.0 ANDROID_API=android-24 DOWNLOAD_QT=TRUE
- BUILD_TARGERT="android" BUILD_ARCH="armeabi-v7a" ANDROID_ARM_NEON=ON QT_VERSION_DIR=5.13 QT_VERSION=5.13.2 ANDROID_API=android-24 DOWNLOAD_QT=TRUE GENERATORS="Unix Makefiles"
- BUILD_TARGERT="android" BUILD_ARCH="armeabi-v7a" ANDROID_ARM_NEON=ON QT_VERSION_DIR=5.12 QT_VERSION=5.12.6 ANDROID_API=android-24 DOWNLOAD_QT=TRUE
- BUILD_TARGERT="android" BUILD_ARCH="x86" QT_VERSION_DIR=5.12 QT_VERSION=5.12.6 ANDROID_API=android-24 DOWNLOAD_QT=TRUE STATIC=ON
before_install:
- echo "TRAVIS_OS_NAME=${TRAVIS_OS_NAME}"
- sudo apt-get install -y -qq xvfb xpra
- sudo Xvfb :99 -ac &
- export DISPLAY=:99.0
- mkdir -p ${SOURCE_DIR}/Tools
- export VERSION="v1.0.4"
install:
- cd ${SOURCE_DIR}
- git clone https://github.com/KangLin/RabbitCommon.git
- export RabbitCommon_DIR="`pwd`/RabbitCommon"
- bash ci/build-install-tools.sh > /dev/null
# - |
# if [ "$BUILD_TARGERT"="unix" -a -z "$RABBIT_ARCH" ]; then
# source /opt/qt511/bin/qt511-env.sh
# fi
before_script:
- cd ${SOURCE_DIR}
script:
- bash ${SOURCE_DIR}/ci/build.sh ${SOURCE_DIR}
#after_script:
# - "xpra stop :99"
notifications:
email: [email protected]
on_success: never # [always|never|change]
on_failure: always
#deploy:
# provider: releases
# api_key:
# secure: Ay7qSOP76v3aEYH8MDmVcgpB5zM6X8h5+0ewcYeEzpzhPNq+W7Wsny8TAv1ZUrZraJnpeh46z1hqlE+Be3sm4/MRGK0XrEdv681zexvVnAcQwfU79TuMCxpRMX7Yh1OhDKd0PfPo3NHGv5tJbLAJCy32f7lCMH8K3Dgiqw2zb5OOqrHHXJYjtntX4FhlEDu9r3X4i/jJsPsiXQBPjb5697pj/xxg4K1w3HC/X9OVDoPAyiEJWHWmcvdNDehq7hQNT/AYGlNNnbs7M8zrLgrUjQYxjumtn1pDbpkVYqXVFnB3rjjlqk4WFuMrq3lEg83OmNWdpX4xvA+lo2Nid8VpFMSbbgO3BPe4Sqq5uWDMbvhH7Tnpr+y31OllFOsEU2uu6GbtSFvsllNDrJbgETsL/eIPdoIHQqcV0nZNPylEd+KHh0fFJ+i/etGwZGigsXgGKLBDbnQ6b2BndbPCafEbF3hotEjNySrKxnmSCTQQ++5OtkjhhLMeYyIpEI1+7VMXynH0fuSgO8z5nKi1z4y0qS5Vm+VPSjuKgcdcpXEOwomL4jarF/nQATv9b2M9o7yzW0awAMtBqxX3WLO64P1q8wfAOYo/oYZbd6ag30WGxmsHIgC9///tLY+lg4xfN+J6u9RB5VQuXt8Q7yWiSkMGSqQF1FS8t2LOV1uV9JqBF5w=
# file: $TRAVIS_BUILD_DIR/../lunarcalendar_*_amd64.deb
# skip_cleanup: true
# draft: true
# on:
# tags: true
# condition: "$BUILD_TARGERT=unix && $QT_VERSION=5.12.4"