forked from pbek/qmarkdowntextedit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (60 loc) · 1.54 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
language: cpp
os:
- linux
- osx
branches:
only:
- develop
- master
- testing
env:
matrix:
- CONFIG=release
#- CONFIG=debug
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
lsb_release -a
&& sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
&& sudo apt-add-repository -y ppa:beineri/opt-qt591-trusty
&& sudo apt-get -qq update
&& sudo apt-get -qq install g++-4.8 libc6-i386 qt59tools qt59svg qt59quickcontrols qt59quickcontrols2 qt59webengine qt59script
&& export CXX="g++-4.8"
&& export CC="gcc-4.8"
;
else
brew update > /dev/null
&& brew install qt5
&& chmod -R 755 /usr/local/opt/qt5/*
;
fi
script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
QTDIR="/opt/qt59"
&& PATH="$QTDIR/bin:$PATH"
&& qt59-env.sh
;
else
QTDIR="/usr/local/opt/qt5"
&& PATH="$QTDIR/bin:$PATH"
&& LDFLAGS=-L$QTDIR/lib
&& CPPFLAGS=-I$QTDIR/include
;
fi
- qmake qmarkdowntextedit.pro CONFIG+=$CONFIG
- make
notifications:
recipients:
- developer@bekerle.com
email:
on_success: change
on_failure: change
irc:
# https://docs.travis-ci.com/user/notifications/#IRC-notification
channels:
- "chat.freenode.net#qownnotes"
template:
- "[%{commit}] %{repository} (%{branch}): %{message} | Commit message: %{commit_message} | Changes: %{compare_url} | Build details: %{build_url}"
on_success: always
on_failure: always
use_notice: true
skip_join: true