-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
61 lines (60 loc) · 1.58 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
language: cpp
sudo: required
dist: trusty
compiler: gcc
addons:
apt:
packages:
- cmake
- cmake-data
- gcc-multilib
- g++-multilib
- libc6
- libfltk-images1.3
- libfltk1.3
- libfltk1.3-dev
- libfltk1.3-compat-headers
- libgcc1
- libstdc++6
- libx11-dev
- libxpm-dev
- fluid
- pkg-config
before_script:
- mkdir build && cd build
script:
- cmake ..
- make -j$(nproc)
- make DESTDIR=appdir install ; find appdir/
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt*.AppImage
- unset LD_LIBRARY_PATH
- "./linuxdeployqt*.AppImage ./appdir/usr/share/applications/jwm-settings-manager.desktop
-bundle-non-qt-libs"
- "./linuxdeployqt*.AppImage ./appdir/usr/share/applications/jwm-settings-manager.desktop
-appimage"
after_success:
- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
- mkdir Deploy
- mv -v JWM_Settings_Manage*.AppImage* Deploy/
- curl --upload-file "{$(echo out/* | tr ' ' ',')}" https://transfer.sh/
notifications:
email: false
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: Israel-D/jwm-settings-manager
branch: master
tags: true