-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
90 lines (84 loc) · 2.26 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
89
90
dist: trusty
sudo: required
language: cpp
matrix:
include:
- os: linux
compiler:
- gcc
env:
- BUILD_ENV=linux_gcc
- os: linux
compiler:
- clang
env:
- BUILD_ENV=linux_clang
- os: osx
osx_image: xcode9.4
compiler:
- gcc
env:
- BUILD_ENV=osx_gcc
- os: osx
osx_image: xcode9.4
compiler:
- clang
env:
- BUILD_ENV=osx_clang
before_install:
- if [ -z "$TRAVIS_TAG" ]; then
export BULD_VER=build${TRAVIS_BUILD_NUMBER}-${TRAVIS_BRANCH};
else
export BULD_VER=${TRAVIS_TAG};
fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get -qq update;
sudo apt-get -qq install libssl-dev pkg-config libxcb-util0-dev;
sudo apt-add-repository -y ppa:beineri/opt-qt593-trusty;
sudo apt-get update -qq;
sudo apt-get install -qq qt59tools qt59base qt59webengine qt59webchannel;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "Calling brew update...";
brew update;
brew outdated openssl || brew upgrade openssl;
echo "Using Homebrew Qt...";
brew install qt5;
export QTDIR=/usr/local/opt/qt5;
fi
script:
- QMAKE="qmake"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
QMAKE="/opt/qt59/bin/qmake";
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
QMAKE=$QTDIR/bin/qmake;
MACDEPLOYQT=$QTDIR/bin/macdeployqt;
fi
- mkdir build && cd build
- $QMAKE -r ..
- make -j3 CC=$CC CXX=$CXX
- cd ./bin
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
rm -r -f ../../resources/qml/+mobile;
$MACDEPLOYQT quiterss.app -dmg -qmldir=../../resources/qml;
mv quiterss.dmg QuiteRSS-${BULD_VER}.dmg;
else
mv quiterss QuiteRSS-${BULD_VER};
fi
#after_success:
# - if [[ "$BUILD_ENV" == "osx_clang" ]]; then
# if [ -z "$TRAVIS_TAG" ]; then
# sh ../../tools/build/bintray-macosx-dev-upload.sh;
# else
# sh ../../tools/build/bintray-macosx-upload.sh;
# fi
# fi
# elif [[ "$BUILD_ENV" == "linux_gcc" ]]; then
# if [ -z "$TRAVIS_TAG" ]; then
# sh ../../tools/build/bintray-linux-dev-upload.sh;
# else
# sh ../../tools/build/bintray-linux-upload.sh;
# fi
# fi