forked from QNapi/qnapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
137 lines (127 loc) · 5.72 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
language: cpp
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QT_BASE=52
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QT_BASE=53
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QT_BASE=54
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QT_BASE=55
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QT_BASE=56
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QT_BASE=57
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QT_BASE=58
- BUILD_APPIMG=1
- MAKE_SRC_TARBALL=1
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QT_BASE=59
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QT_BASE=510
- os: osx
compiler: clang
env:
- QT_BASE=55
- MAKE_DMG=1
- os: osx
compiler: clang
env:
- QT_BASE=510
before_install:
- if [[ "$QT_BASE" = "51" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt511-trusty -y; fi
- if [[ "$QT_BASE" = "52" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt521-trusty -y; fi
- if [[ "$QT_BASE" = "53" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt532-trusty -y; fi
- if [[ "$QT_BASE" = "54" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt542-trusty -y; fi
- if [[ "$QT_BASE" = "55" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt551-trusty -y; fi
- if [[ "$QT_BASE" = "56" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt562-trusty -y; fi
- if [[ "$QT_BASE" = "57" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt571-trusty -y; fi
- if [[ "$QT_BASE" = "58" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt58-trusty -y; fi
- if [[ "$QT_BASE" = "59" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt593-trusty -y; fi
- if [[ "$QT_BASE" = "510" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get update -qq;
else
brew update;
brew tap homebrew/core;
fi
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -qq libmediainfo-dev; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install mediainfo; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then npm install -g appdmg; fi
- if [[ "$QT_BASE" = "51" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo apt-get install -qq qt51base; source /opt/qt51/bin/qt51-env.sh; fi
- if [[ "$QT_BASE" = "52" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo apt-get install -qq qt52base; source /opt/qt52/bin/qt52-env.sh; fi
- if [[ "$QT_BASE" = "53" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo apt-get install -qq qt53base; source /opt/qt53/bin/qt53-env.sh; fi
- if [[ "$QT_BASE" = "54" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo apt-get install -qq qt54base; source /opt/qt54/bin/qt54-env.sh; fi
- if [[ "$QT_BASE" = "55" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo apt-get install -qq qt55base; source /opt/qt55/bin/qt55-env.sh; fi
- if [[ "$QT_BASE" = "56" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo apt-get install -qq qt56base; source /opt/qt56/bin/qt56-env.sh; fi
- if [[ "$QT_BASE" = "57" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo apt-get install -qq qt57base; source /opt/qt57/bin/qt57-env.sh; fi
- if [[ "$QT_BASE" = "58" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo apt-get install -qq qt58base; source /opt/qt58/bin/qt58-env.sh; fi
- if [[ "$QT_BASE" = "59" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo apt-get install -qq qt59base; source /opt/qt59/bin/qt59-env.sh; fi
- if [[ "$QT_BASE" = "510" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo apt-get install -qq qt510base; source /opt/qt510/bin/qt510-env.sh; fi
- if [[ "$QT_BASE" = "55" && "$TRAVIS_OS_NAME" = "osx" ]]; then brew install [email protected]; brew link --force [email protected]; fi
- if [[ "$QT_BASE" = "510" && "$TRAVIS_OS_NAME" = "osx" ]]; then brew install qt; brew link --force qt; fi
script:
- export VERSION=`scripts/version.sh`
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export QT_SELECT=5; fi
- qmake -v
- qmake
- make -j4
after_success:
- if [ "$BUILD_APPIMG" = "1" ]; then ./scripts/make_appimage.sh; fi
- if [ "$MAKE_SRC_TARBALL" = "1" ]; then ./scripts/make_src_tarball.sh; fi
- if [ "$MAKE_DMG" = "1" ]; then
make appdmg;
mv macx/QNapi.dmg macx/QNapi-$VERSION.dmg;
fi
deploy:
provider: releases
api_key:
secure: fQr38DcITobL1+Eit15lH5ynVYZm6ytfJD+kb9fgXLWcXfZc85zhCti1VUWnqzNykHEktzGi8nM5D0mh4PYgZwL6O9lFZB5XYiAz+lDAxkoE62OoYYs5Oohl/OswHIOjuk2kI+a1hoWNLxfAeD0GC73dNKiyO7Y1199mb+9Xmm+IA+chl4i8qyPlnm0sAFpjMTaRZMWMZIX5rgnVBOjr0IyBDln1Sh/iMmHvUr8CmVxfJMlbAGdo9nCbLPqJ7TmaW87xoddmYorZhmblgJpHMxQhNH9Nzk7AwmGvou33zOzHhwNdFp4p46XmvUY582HBRAq5GPr9i4aduFX+eslhfmAfUnntr9e/h2isaa1ucavqmPfySpqkGwObj8N8A8R8WX5e8GTAt5YtXoPUbcVfeQYw1sAFTRisES+C1RxLQlB5QMPVwmm+1VQ+xlQySByq8YMqFLmY4yVTlngXCummAkv9pWlbpd1L1tKi3ZZ2i4XH81mve5aGc1gtDndSj5SIumJVUAAvS/naTaV/cAn86Rgy0Jnv/ttp7FSYEjsatl4NLF79HalM2LuYxEdw/kv53bavjtQVD/12rUTKjyudsgk8+6f7tkejyNWH0yBi4mULe/gaws7cWDhMK6sjOO/1cmK8QlvIypERpxP3IML6x0FM9uCzYkJxJHIfcUGBzDU=
file_glob: true
file:
- ./qnapi-*.tar.gz
- ./QNapi-*.AppImage
- ./macx/QNapi*dmg
skip_cleanup: true
overwrite: true
on:
tags: true