This repository has been archived by the owner on Sep 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
74 lines (73 loc) · 2.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
67
68
69
70
71
72
73
74
language: go
dist: trusty
sudo: true
go:
- master
os:
- linux
- osx
compiler:
- gcc
- clang
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ];
then sudo add-apt-repository -y ppa:beineri/opt-qt58-trusty;
fi
addons:
apt:
packages:
- qt5-default
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ];
then brew update;
brew ls | grep -wq qt5 || brew
install qt5;
export PATH=$PATH:/usr/local/opt/qt5/bin;
fi
- if [ "$TRAVIS_OS_NAME" = "linux" ];
then sudo apt-get -qq update;
sudo apt-get -qq
install qt58base qt58tools qt58svg;
fi
before_script:
- if [ "$TRAVIS_OS_NAME" = "linux" ];
then source /opt/qt58/bin/qt58-env.sh;
fi
script:
- make
- if [ "$TRAVIS_OS_NAME" = "osx" ];
then cd tumblr-downloader-gui;
macdeployqt tumblr-downloader-gui.app
-dmg;
cd ..;
cp tumblr-downloader-gui/tumblr-downloader-gui.dmg ./Tumblr_Downloader_GUI-x86_64.dmg;
fi
- if [ "$TRAVIS_OS_NAME" = "linux" ];
then mkdir -p appdir/usr/bin ;
mkdir -p appdir/usr/share/{applications,icons} ;
cd appdir;
cp ../tumblr-downloader-gui/tumblr-downloader-gui ../tumblr-downloader-gui/tumblr-downloader usr/bin/;
chmod a+x usr/bin/* ;
cp ../LICENSE ../COPYING.LESSER ;
cp ../*.desktop .;
cp ../tumblr-downloader-client.png .;
cd .. ;
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage" ;
chmod a+x linuxdeployqt*.AppImage;
unset QTDIR;
unset QT_PLUGIN_PATH ;
unset LD_LIBRARY_PATH;
./linuxdeployqt*.AppImage ./appdir/usr/bin/tumblr-downloader-gui -bundle-non-qt-libs;
./linuxdeployqt*.AppImage ./appdir/usr/bin/tumblr-downloader-gui -appimage;
mv ./Tumblr*.AppImage ./Tumblr_Downloader_GUI-x86_64.AppImage;
chmod a+x ./Tumblr_Downloader_GUI-x86_64.AppImage;
fi
deploy:
provider: releases
api_key:
secure: ev2xc7PMIHUgojX53xISaZ6RJD4uFYQ/qYVhQraCkNEEPlVRTU+paT+6i7Cyo/GB9oKzENfcTmg/+NeEp03FtpgPpLJuPph60hrndxDq2vvIc0qd/TAoCdvD+LKoDl/rbocTjvPzw2LWK/Gd48Q4kOnWaPANOh9NjWL25eo8BejEfdw/lZ9heVsRcKmDPA5AxR9bPHVtwbgra/lN8QnwyRg2diq/fyPwCrjOELuEjNIT9Jc0j3aD357cLTan4FpfuaytsA2lvijXUGjXe22tKMJjFwbFQIPFJm1yPSk4D5FKM/2HsExNGrQK5FtqJb2iRCiHH63/QseVdHQRuIsbZGhA5QDKrQ/PRKKH0c6LDjgcn0GdIVdPriOcDcruFP4TaX2GcGl+rtrRb/mDKRr07aVu4ip9Pmn+pe+76xSxSEokzZmg7IxfeGwL/ilTcFPw+GenjiYHsb0Rb51zQmxBNKrUKJzId7xwdUcGyri/suGaD+iznh72CAKDKGI54Y0AJIuaX0VrjS2wJ004bwPWwNOARQfuDzMljNCDEUW1N9Fwre8VtbRf/FE7Zkuojv+9acusQn8V4g/13Twem5aPzWs+532lCippn9GTYxuou8QZlsXxfZGrCoGzA4AYH1UM5QXn1ydLFQXMCIChnLmlJHkNGv8ovFpbTKMmvgvTuTI=
file: "./Tumblr_Downloader_GUI-x86_64.*"
skip_cleanup: true
file_glob: true
on:
tags: true