-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
119 lines (111 loc) · 3.85 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
language: cpp
dist: trusty
osx_image: xcode10.2
os:
- linux
- osx
branches:
only:
- develop
- master
- testing
env:
global:
# $TAGPERM environment variable
# generate a token at https://github.com/settings/tokens and encrypt it
# with `travis encrypt TAGPERM=<yoursecrettoken> --add env.global`
# also see: https://docs.travis-ci.com/user/encryption-keys/#Usage
# and: https://docs.travis-ci.com/user/best-practices-security/
# - secure: SU8ZNOzs3sRC/tzLF2yvGKJOyiGb/RvEcTDupwXcrOLyhcc0HvmSSYPvsgVllTyUlycH7maTbztUei+W4zqqtbKCxhVEuShEi6k5qWS/1QgfJ8f/rT2IpdVftmOGFHB9J454HwFQJhoRtEuJ0dCSsOp7S5iAC/RrRqyfh+KSoPY=
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-qt562-trusty
sudo apt-get -qq update
sudo apt-get -qq install g++-4.8 libc6-i386 qt56tools qt56svg qt56script
export CXX="g++-4.8"
export CC="gcc-4.8"
fi
# OS X Qt http://braumeister.org/search/qt5
# we need to use macdeployqtfix after using macdeployqt to fix the library paths!
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]
then
brew update > /dev/null
brew install qt5
export QTDIR="/usr/local/opt/qt5"
fi
script:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
then
QTDIR="/opt/qt56"
PATH="$QTDIR/bin:$PATH"
qt56-env.sh
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]
then
PATH="$QTDIR/bin:$PATH"
LDFLAGS=-L$QTDIR/lib
CPPFLAGS=-I$QTDIR/include
fi
- cd src
- qmake LogAnalyzer.pro CONFIG+=$CONFIG
- make
before_deploy:
- export VERSION_NUMBER=`cat version.h | sed "s/[^0-9,.]//g"`
# create a disk image for OSX
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
../build-systems/travis/create-dmg.sh
;
fi
#
# add a tag
#
- TIME_STRING=`date +%H%M%S`
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
export GIT_TAG=macosx-b$TRAVIS_BUILD_NUMBER-$TIME_STRING
;
fi
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
- git push -q https://[email protected]/pbek/loganalyzer --tags >/dev/null 2>&1
deploy:
- provider: releases
api_key:
secure: "QSBODuEE8/uPKXs0IH/FlKXPIdS7Gfs4iLxzIH5EG+isIE0m/27XQRO8fgU/brgsiwGpuiXU0+to2/hFeBeNT0ywjjfkOObJlxHGFNNNiQUXTuVBPCo+0er7/Om7s6PvnTbbbLhBFfiK6cYSNCMf+CEqi4EIkVXIntZ0CTAZzIqqKgXqshRkj1USadGPrv0bdGl7/qfyWdDfMY1CC5NjKq558s2Yc2aviwVOBH0AVMPwBMOesSEKJSVkL1sjDor9Aa3rZdgm7+qKfgbx1mDZiDvSc5kvLPEJFkbuHTOcxWgaB2V4Z8+sFuDfgjJ5fylAnT+tgh2DFtDFaVRCnTsZdNl8qI6TshPdyCxZLyr55Vto/7EIDuqPIbUL0CC/+XtlWkK8vu3qICltoX7saBJwpQuurf+C/J4FT0BbC+xwN7irTXDeWkXFV14b/75OUVL4JBAPYkZrMwr4l65xM7fP794Vq9E4+MByD+h0X5uM81IvyLFWbwAU5JdZXYfx1d6WuFjSnpmvKZo/c8aW09BDZblc2XB75KTUTcuYnDOmvCpwTDVp0w4/A2z5VYjLFIJLa1UZiKVPFu2veVRMfFvu7h93L8Bv3RGA8TaY5HKK8xz1d8jWUSeRUsVDzKHWzHGXeeb4mETFaJDcUJvMEH60AQMPITM2tOUfr2lK/xpc3U0="
file: LogAnalyzer-$VERSION_NUMBER.dmg
skip_cleanup: true
on:
repo: pbek/loganalyzer
branch: master
# branch: develop
tags: false
condition: $CONFIG = release && ${TRAVIS_OS_NAME} = osx
notifications:
recipients:
email:
on_success: change
on_failure: change
irc:
# https://docs.travis-ci.com/user/notifications/#IRC-notification
channels:
- "chat.freenode.net#fuf"
template:
- "[%{commit}] %{repository} (%{branch}): %{message}"
- "[%{commit}] Commit message : %{commit_message}"
- "[%{commit}] Change view : %{compare_url}"
- "[%{commit}] Build details : %{build_url}"
on_success: always
on_failure: always
use_notice: true
skip_join: true