forked from azagaya/laigter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (52 loc) · 2.24 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
os:
- linux
- osx
dist: xenial
language: cpp
compiler: clang
addons:
apt:
sources:
- sourceline: ppa:beineri/opt-qt-5.14.1-xenial
packages:
- qt514base
- qt514x11extras
- qt514tools
- libgl1-mesa-dev
- qt514imageformats
- libssl1.0.0
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update > /dev/null
&& brew upgrade qt5
&& chmod -R 755 /usr/local/opt/qt5/*
&& brew link qt5 --force
;
fi
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then source /opt/qt*/bin/qt*-env.sh; fi
script:
- qmake CONFIG+=release PREFIX=/usr
- make -j$(nproc)
- make INSTALL_ROOT=appdir install
- find appdir/
- mkdir -p appdir/usr/lib
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cp /lib/x86_64-linux-gnu/libssl.so.1.0.0 appdir/usr/lib; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cp /usr/lib/x86_64-linux-gnu/libssl.so appdir/usr/lib;
fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then chmod a+x linuxdeployqt-continuous-x86_64.AppImage; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then if [[ "$TRAVIS_TAG" != "" ]]; then export VERSION=$TRAVIS_TAG;fi;fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -extra-plugins=imageformats -appimage; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then macdeployqt laigter.app; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then wget https://raw.githubusercontent.com/arl/macdeployqtfix/master/macdeployqtfix.py && chmod a+x macdeployqtfix.py; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./macdeployqtfix.py laigter.app /usr/local/Cellar/qt/*/; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then zip -r laigter.zip laigter.app; fi
after_success:
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash upload.sh Laigter*.AppImage*; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash upload.sh laigter.zip; fi
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/