This repository has been archived by the owner on Jul 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
67 lines (57 loc) · 1.97 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
language: cpp
compiler: gcc
dist: trusty
sudo: required
notifications:
email: false
addons:
apt:
sources:
- sourceline: 'ppa:beineri/opt-qt-5.10.1-trusty'
packages:
- wget
- git
- cmake
- qt510base
- qt510declarative
before_install:
- wget "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- git clone https://github.com/KDE/extra-cmake-modules.git
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
install:
- cd extra-cmake-modules/ && cmake . && make -j$(nproc) && sudo make -j$(nproc) install && cd ..
- sudo update-alternatives --install /usr/bin/qmake qmake /opt/qt510/bin/qmake 1
script:
- /opt/qt510/bin/qt510-env.sh
- export QT_SELECT=qt5
- export PATH=$PATH:/opt/qt510/bin/
- export QML_MODULES_FIND_DIRS="/opt/qt510/qml /usr/lib/x86_64-linux-gnu/qml"
- export VERSION=$(git rev-parse --short HEAD)
- sudo ldconfig -c /opt/qt510/lib/ /usr/lib/x86_64-linux-gnu/
- cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH="/opt/qt510/"
- make -j$(nproc)
- make -j$(nproc) DESTDIR=appdir install
- ARCH=x86_64 ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -bundle-non-qt-libs
- ARCH=x86_64 ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage
after_success:
- mkdir out
- mv ./paper*.AppImage ./out/
- md5sum ./out/paper*.AppImage > ./out/MD5-$VERSION.txt
- curl --upload-file ./out/paper*.AppImage https://transfer.sh/
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/
before_deploy:
- if [ -z "$TRAVIS_TAG" ]; then export TRAVIS_TAG="continuous"; git tag -f $TRAVIS_TAG; fi
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file: out/*
skip_cleanup: true
prerelease: true
overwrite: true
on:
repo: anupam-git/paper
branch: master