• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1sudo: required # needed for trusty beta
2dist: trusty   # needed for HarfBuzz
3
4language: c
5
6compiler:
7  - clang
8  - gcc
9
10before_script:
11  - sudo add-apt-repository -y ppa:as-bahanta/raqm
12  - sudo add-apt-repository ppa:dns/gnu -y
13  - sudo apt-key update -q
14  - sudo apt-get update -q
15  - sudo apt-get install --only-upgrade autoconf
16  - sudo apt-get install -y libraqm-dev libfreetype6-dev libharfbuzz-dev libfribidi-dev
17
18script: |
19  set -e
20  set -x
21  export CFLAGS="-Wno-deprecated-declarations -Wdeclaration-after-statement -Wno-error=unused-variable"
22  if [ "$TRAVIS_COMPILER" == "gcc" ] ; then
23    ./configure --with-quantum-depth=16 --enable-hdri=no --without-perl --prefix=/usr
24  else
25    ./configure --disable-openmp --with-quantum-depth=16 --enable-hdri=no --without-perl --prefix=/usr
26  fi
27  make
28  make install DESTDIR=$(readlink -f appdir)
29  # Build the fuzzers
30  ./.travis/build_fuzzers.sh
31  # Generate AppImage
32  mkdir -p appdir/usr/share/applications/ ; cp imagemagick.desktop appdir/usr/share/applications/
33  mkdir -p appdir/usr/share/icons/hicolor/128x128/apps/ ; touch appdir/usr/share/icons/hicolor/128x128/apps/imagemagick.png # FIXME
34  wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
35  chmod a+x linuxdeployqt*.AppImage
36  unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
37  export VERSION=$(git rev-parse --short HEAD)-$CC
38  ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/imagemagick.desktop -bundle-non-qt-libs
39  ./linuxdeployqt*.AppImage --appimage-extract
40  rm ./appdir/AppRun ; cp AppRun appdir/ ; chmod a+x ./appdir/AppRun # Replace symlink with custom script
41  PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool -g ./appdir/
42
43after_success:
44  - find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
45  - if [ "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ] ; then wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh ; bash upload.sh ImageMagick*AppImage* ; fi
46  - 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
47