-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
41 lines (35 loc) · 2.01 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
language: cpp
compiler: gcc
sudo: require
dist: trusty
before_install:
- sudo add-apt-repository 'deb http://repos.codelite.org/wx3.1.0/ubuntu/ trusty universe'
- sudo apt-get update -qq
install:
- sudo apt-get -y --allow-unauthenticated install intltool libwxbase3.1-dev libwxgtk3.1-dev
script:
- ./autogen.sh
- ./configure --prefix=/usr CPPFLAGS=-DNDEBUG
- make -j$(nproc)
- make install DESTDIR=$(readlink -f appdir) ; find appdir/
- ( cd appdir/ ; find usr/ -type f -exec sed -i -e "s|/usr|././|g" {} \; )
- export LD_LIBRARY_PATH=appdir/usr/lib:appdir/usr/lib/csl:appdir/usr/lib/csl/plugins
- FILES=$(find appdir/ -type f -name '*.so*' -or -name '*.so' -or -executable)
- for FILE in $FILES; do echo $FILE; ldd $FILE; echo ===; done
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt*.AppImage
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs
- ( cd appdir ; rm AppRun ; wget -c "https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64" -O AppRun ; chmod a+x AppRun )
- rm appdir/usr/lib/libharfbuzz.* # Workaround for: csl: symbol lookup error: /usr/lib64/libpangoft2-1.0.so.0: undefined symbol: hb_buffer_set_cluster_level
- ./linuxdeployqt*.AppImage --appimage-extract
- PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool ./appdir/
after_success:
- find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
# - curl --upload-file ./Cube*.AppImage https://transfer.sh/Cube_Server_Lister-git.$(git rev-parse --short HEAD)-x86_64.AppImage
- ls -lh ./Cube*.AppImage # Assuming you have some files in out/ that you would like to upload
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash ./upload.sh ./Cube*.AppImage
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/