-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (41 loc) · 1.78 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
language: cpp
compiler:
- gcc
before_install:
- sudo apt-get update
install:
- sh opencv430install.sh
before_script:
- cd build
- cmake ..
script:
- make
# modified from https://github.com/hn-88/OCVWarp/blob/master/.travis.yml
- mkdir -p appdir/usr/bin ; strip OCVvid2fulldome ; cp OCVvid2fulldome ./appdir/usr/bin/
- mkdir -p appdir/usr/share/applications ; cp ../appdir/OCVvid2fulldome.desktop ./appdir/usr/share/applications/
- mkdir -p appdir/usr/share/icons/hicolor/256x256/apps ; cp ../appdir/OCVvid2fulldome.png ./appdir/usr/share/icons/hicolor/256x256/apps/
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- unset QTDIR; unset QT_PLUGIN_PATH
# ; unset LD_LIBRARY_PATH
- export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
###########################################
#- export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file
- export VERSION="1.60"
###########################################
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -bundle-non-qt-libs
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage
after_success:
#- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
#- curl --upload-file OCVWarp*.AppImage https://transfer.sh/OCVWarp1.30-x86_64.AppImage
#- curl --upload-file getfourcc*.AppImage https://transfer.sh/getfourcc1.30-x86_64.AppImage
#- mv OCVWarp*.AppImage OCVWarp-2.50-x86_64.AppImage
deploy:
provider: releases
token: $mytokenname
file_glob: true
file: O*.AppImage
draft: true
#on:
# tags: true
edge: true