-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
85 lines (77 loc) · 2.98 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
75
76
77
78
79
80
81
82
83
84
85
---
language: c++
compiler: gcc
sudo: require
dist: xenial
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt-5.12.2-xenial -y
- sudo apt-get update -qq
install:
- sudo apt-get -y install qt5-qmake qt5-default
- sudo apt-get -y install libqt5opengl5-dev qtbase5-dev
- sudo apt-get -y install libqwt-qt5-dev libsndfile1-dev
- sudo apt-get -y install libfftw3-dev portaudio19-dev
- sudo apt-get -y install zlib1g-dev libusb-1.0-0-dev
- sudo apt-get -y install mesa-common-dev libgl1-mesa-dev libsamplerate-dev
- sudo apt-get install libtool
- sudo apt-get install autoconf
- sudo apt-get install libfdk-aac-dev
-# tar zxvf faad2-2.8.8.tar.gz
-# cd faad2-2.8.8
-# ./configure
-# make
-# sudo make install
-# sudo ldconfig
-# cd ..
-# rm -rf faad2-2.8.8
- tar zxvf rtl-sdr.tgz
- cd rtl-sdr
- mkdir build
- cd build
- cmake .. -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
- make
- sudo make install
- cd ../..
- rm -rf rtl-sdr
- ls -l
- tar zxvf hackrf.tgz
- cd host
- mkdir build
- cd build
- cmake .. -DINSTALL_UDEV_RULES=ON
- make
- sudo make install
- cd ../..
- rm -rf host
script:
- cmake . -DCMAKE_INSTALL_PREFIX=/usr
- make -j4
- ls -lh .
- mkdir -p appdir/usr/bin
- cp swradio-8.1 appdir/usr/bin/swradio-8
- mkdir -p appdir/usr/lib
- mkdir -p appdir/usr/share/applications
- cp swradio.desktop appdir/usr/share/applications
- cp swradio.png appdir/qt-dab.png
- touch appdir/swradio.png
- ls -l appdir/usr/lib
after_success:
- ls -l
- ls -l appdir
- ls -l appdir/usr
- ls -l appimage
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt*.AppImage
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/* -bundle-non-qt-libs
- # Workaround for https://github.com/probonopd/linuxdeployqt/issues/31#issuecomment-289267637
- ./linuxdeployqt*.AppImage --appimage-extract
- find appdir/usr/plugins/ -type f -exec squashfs-root/usr/bin/patchelf --set-rpath '$ORIGIN/../../lib' {} \;
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/* -bundle-non-qt-libs
- chmod a+x appimage/* ; rm appdir/AppRun ; cp appimage/* appdir/
- export PATH=squashfs-root/usr/bin/:$PATH # Make it pick up our private patched mksquashfs; https://github.com/plougher/squashfs-tools/pull/13/files
- squashfs-root/usr/bin/appimagetool $(readlink -f ./appdir/)
- find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
- curl --upload-file ./swradio*.AppImage https://transfer.sh/swradio-8.$(git rev-parse --short HEAD)-x86_64.AppImage
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash ./upload.sh ./swradio*.AppImage