Cristy | 17f8c72 | 2016-01-31 09:42:56 -0500 | [diff] [blame] | 1 | sudo: required # needed for trusty beta |
| 2 | dist: trusty # needed for HarfBuzz |
| 3 | |
cristy | c09aa1f | 2015-06-05 22:37:37 +0000 | [diff] [blame] | 4 | language: c |
| 5 | |
cristy | c09aa1f | 2015-06-05 22:37:37 +0000 | [diff] [blame] | 6 | compiler: |
| 7 | - clang |
| 8 | - gcc |
| 9 | |
| 10 | before_script: |
Cristy | 17f8c72 | 2016-01-31 09:42:56 -0500 | [diff] [blame] | 11 | - sudo add-apt-repository -y ppa:as-bahanta/raqm |
cristy | c09aa1f | 2015-06-05 22:37:37 +0000 | [diff] [blame] | 12 | - sudo add-apt-repository ppa:dns/gnu -y |
dirk | 6f921d6 | 2016-02-01 19:22:54 +0100 | [diff] [blame] | 13 | - sudo apt-key update -q |
cristy | c09aa1f | 2015-06-05 22:37:37 +0000 | [diff] [blame] | 14 | - sudo apt-get update -q |
| 15 | - sudo apt-get install --only-upgrade autoconf |
Cristy | 17f8c72 | 2016-01-31 09:42:56 -0500 | [diff] [blame] | 16 | - sudo apt-get install -y libraqm-dev libfreetype6-dev libharfbuzz-dev libfribidi-dev |
cristy | c09aa1f | 2015-06-05 22:37:37 +0000 | [diff] [blame] | 17 | |
Paul Kehrer | 8468717 | 2018-01-15 15:10:59 -0600 | [diff] [blame] | 18 | script: | |
| 19 | set -e |
| 20 | set -x |
Paul Kehrer | 8468717 | 2018-01-15 15:10:59 -0600 | [diff] [blame] | 21 | export CFLAGS="-Wno-deprecated-declarations -Wdeclaration-after-statement -Wno-error=unused-variable" |
Dirk Lemstra | f816d4b | 2020-01-06 17:12:45 +0100 | [diff] [blame] | 22 | ./configure --with-quantum-depth=16 --enable-hdri=no --without-perl --prefix=/usr |
Paul Kehrer | 8468717 | 2018-01-15 15:10:59 -0600 | [diff] [blame] | 23 | make |
| 24 | make install DESTDIR=$(readlink -f appdir) |
| 25 | # Build the fuzzers |
| 26 | ./.travis/build_fuzzers.sh |
| 27 | # Generate AppImage |
| 28 | mkdir -p appdir/usr/share/applications/ ; cp imagemagick.desktop appdir/usr/share/applications/ |
| 29 | mkdir -p appdir/usr/share/icons/hicolor/128x128/apps/ ; touch appdir/usr/share/icons/hicolor/128x128/apps/imagemagick.png # FIXME |
| 30 | wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" |
| 31 | chmod a+x linuxdeployqt*.AppImage |
| 32 | unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH |
| 33 | export VERSION=$(git rev-parse --short HEAD)-$CC |
| 34 | ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/imagemagick.desktop -bundle-non-qt-libs |
| 35 | ./linuxdeployqt*.AppImage --appimage-extract |
| 36 | rm ./appdir/AppRun ; cp AppRun appdir/ ; chmod a+x ./appdir/AppRun # Replace symlink with custom script |
| 37 | PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool -g ./appdir/ |
probonopd | 4b45830 | 2017-11-09 19:32:56 +0100 | [diff] [blame] | 38 | |
| 39 | after_success: |
| 40 | - find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq |
Dirk Lemstra | 9161ef3 | 2018-01-09 21:06:36 +0100 | [diff] [blame] | 41 | - if [ "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ] ; then wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh ; bash upload.sh ImageMagick*AppImage* ; fi |
| 42 | - if [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ] ; then curl --upload-file ./ImageMagick*.AppImage https://transfer.sh/ImageMagick-git.$(git rev-parse --short HEAD)-x86_64.AppImage ; fi |