]> granicus.if.org Git - imagemagick/blob - .travis.yml
No longer need "branches: except" since not running uploadtool for non-tagged builds
[imagemagick] / .travis.yml
1 sudo: required # needed for trusty beta
2 dist: trusty   # needed for HarfBuzz
3
4 language: c
5
6 compiler:
7   - clang
8   - gcc
9
10 before_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
18 script:
19   - export OMP_NUM_THREADS=1
20   - export CFLAGS="-Wno-deprecated-declarations -Wdeclaration-after-statement -Wno-error=unused-variable"
21   - ./configure --disable-openmp --with-quantum-depth=16 --enable-hdri=no --without-perl --prefix=/usr
22   - make -j$(nproc)
23   - # Generate AppImage
24   - make install DESTDIR=$(readlink -f appdir) ; find appdir/
25   - mkdir -p appdir/usr/share/applications/ ; cp imagemagick.desktop appdir/usr/share/applications/
26   - mkdir -p appdir/usr/share/icons/hicolor/128x128/apps/ ; touch appdir/usr/share/icons/hicolor/128x128/apps/imagemagick.png # FIXME
27   - wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
28   - chmod a+x linuxdeployqt*.AppImage
29   - unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
30   - export VERSION=$(git rev-parse --short HEAD)-$CC
31   - ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/imagemagick.desktop -bundle-non-qt-libs
32   - ./linuxdeployqt*.AppImage --appimage-extract
33   - rm ./appdir/AppRun ; cp AppRun appdir/ ; chmod a+x ./appdir/AppRun # Replace symlink with custom script
34   - PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool -g ./appdir/
35
36 after_success:
37   - find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
38   - if [ "$TRAVIS_BRANCH" == "TRAVIS_TAG" ] ; then wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh ; bash upload.sh ImageMagick*AppImage* ; fi
39   - 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
40
41 #    - cd PerlMagick
42 #    - perl Makefile.PL
43 #    - make