-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
79 lines (76 loc) · 3.42 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
language: cpp
compiler: gcc
sudo: require
dist: xenial
before_install:
# C++14
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
# Qt 5.15.0
- sudo add-apt-repository ppa:beineri/opt-qt-5.15.0-xenial -y
- sudo apt-get update -qq
install:
# C++14
- sudo apt-get -y install g++-9
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
# Qt 5.15.0
- sudo apt-get -y install qt515base qt515declarative qt515quickcontrols qt515quickcontrols2 libtiff-dev libgomp1 libexiv2-dev libjpeg-dev libglibmm-2.4-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libcurl4-openssl-dev libarchive-dev
- source /opt/qt515/bin/qt515-env.sh
script:
#build libraw
- git clone https://github.com/LibRaw/LibRaw.git
- cd LibRaw
- git checkout 0209b6a2caec189e6d1a9b21c10e9e49f46e5a92 #0.20.2
- git apply ../patches/libraw-makefile.patch
- make -j3 -f Makefile.dist
- sudo make install -f Makefile.dist
- cd ..
#build librtprocess
- git clone https://github.com/CarVac/librtprocess.git
- cd librtprocess
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE="Release" ..
- make -j4
- sudo make install
- cd ../..
#build lensfun
- git clone https://github.com/lensfun/lensfun.git
- cd lensfun
#- git checkout b7c7e49a3601690f3225b99a0acbe7272fe68bfa
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE="Release" ..
- make -j4
- sudo make install
- cd ../..
#build filmulator
- cd filmulator-gui
#- qmake PREFIX=/usr
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX="appdir" -DCMAKE_BUILD_TYPE="Release" ..
- make -j4
- make install ; find appdir/
- pwd
# Dear upstream, please install to more standard locations
- mkdir -p appdir/usr/bin ; mv appdir/bin/filmulator appdir/usr/bin/filmulator-gui
- mkdir -p appdir/usr/qml ; mv appdir/share/Filmulator/qml/filmulator-gui/* appdir/usr/qml/
- rm -rf appdir/bin/
- rm -rf appdir/share/
- mkdir -p appdir/usr/share/applications/ ; cp ../filmulator-gui.desktop.in appdir/usr/share/applications/filmulator-gui.desktop
- sed -i -e 's|^Exec=.*|Exec=filmulator-gui|g' appdir/usr/share/applications/filmulator-gui.desktop
- mkdir -p appdir/usr/share/icons/hicolor/64x64/apps/
- cp ../filmulator-gui64.png appdir/usr/share/icons/hicolor/64x64/apps/filmulator-gui.png
- cp ../filmulator-gui64.png appdir/filmulator-gui64.png
- find appdir/
- 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
- export LD_LIBRARY_PATH=/usr/local/lib
# ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs -qmldir=. -qmldir=appdir/usr/qml/ -verbose=2
# ls -l ./appdir/
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -appimage -qmldir=. -qmldir=appdir/usr/qml/ -verbose=2
- find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
#- curl --upload-file ./Filmulator*.AppImage https://transfer.sh/Filmulator-git.$(git rev-parse --short HEAD)-x86_64.AppImage
- curl https://gist.githubusercontent.com/gingerbeardman/a7737e4c89fccab8605f8538ddaeec0d/raw/a78f5253b0fcdbd7b893f91627a29498690356ea/file.io.sh | sudo tee /usr/local/bin/file.io && sudo chmod +x /usr/local/bin/file.io
- file.io ./Filmulator*.AppImage 2w