Subversion Repositories Scribus

Rev

Rev 23278 | Rev 23489 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20505 craig 1
language: c++
20294 craig 2
 
20505 craig 3
matrix:
4
  include:
5
    - os: linux
22777 jghali 6
      dist: xenial
20505 craig 7
      sudo: required
8
      compiler:
9
        - gcc
10
    - os: linux
22777 jghali 11
      dist: xenial
20505 craig 12
      sudo: required
13
      compiler:
14
        - clang
15
    - os: osx
16
      compiler: clang
17
  exclude:
18
    - os: osx
19
      compiler: gcc
20
    - os: linux
21
      dist: precise
22777 jghali 22
    - os: linux
23
      dist: trusty
20294 craig 24
 
25
before_install:
20505 craig 26
# Linux
22809 jghali 27
-   if [ $TRAVIS_OS_NAME == linux ]; then
23278 jghali 28
      sudo apt-add-repository ppa:beineri/opt-qt5.10.1-xenial -y;
21563 jghali 29
      sudo apt-add-repository ppa:as-bahanta/raqm -y;
21507 craig 30
      sudo apt-add-repository ppa:ricotz/testing -y;
21563 jghali 31
      sudo apt-get update -qq;
22809 jghali 32
    fi
33
# OSX
34
-   if [ $TRAVIS_OS_NAME == osx ]; then
35
      brew update;
36
    fi
37
 
38
install:
39
# Linux
40
-   if [ $TRAVIS_OS_NAME == linux ]; then
23486 jghali 41
      sudo apt-get install --force-yes cmake libboost-python-dev libcairo2-dev libcups2-dev
42
      libharfbuzz-dev libharfbuzz-icu0 libhunspell-dev libhyphen-dev liblcms2-dev
43
      libpodofo-dev libpoppler-dev libpoppler-cpp-dev libtiff-dev libxml2-dev
44
      qt510base qt510declarative qt510tools python3-all-dev python3-tk zlib1g-dev
45
      libgraphicsmagick++1-dev libopenscenegraph-dev libcdr-dev libmspub-dev libwpg-dev libvisio-dev
46
      coreutils binutils ;
22809 jghali 47
#     Build a more recent poppler than Ubuntu Xenial's poppler 0.41.0
48
      mkdir deps && pushd deps;
49
      sudo apt-get install --force-yes libopenjpeg-dev;
50
      wget https://poppler.freedesktop.org/poppler-data-0.4.9.tar.gz && tar -xf poppler-data-0.4.9.tar.gz;
51
      pushd poppler-data-0.4.9 && cmake -DCMAKE_BUILD_TYPE=Release && sudo make install && popd;
23486 jghali 52
      wget https://poppler.freedesktop.org/poppler-0.62.0.tar.xz && tar -xf poppler-0.62.0.tar.xz;
53
      pushd poppler-0.62.0 && cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_XPDF_HEADERS=1 && sudo make install && popd;
22809 jghali 54
      popd;
20505 craig 55
    fi
56
# OSX
22809 jghali 57
-   if [ $TRAVIS_OS_NAME == osx ]; then
20505 craig 58
      brew outdated cmake --verbose || brew upgrade cmake;
59
      brew tap homebrew/dupes && brew install homebrew/dupes/zlib && brew link --force zlib;
21563 jghali 60
      brew install icu4c && brew link --force icu4c;
61
      brew install xz little-cms2 cairo qt5 hunspell ghostscript graphicsmagick poppler podofo harfbuzz;
23278 jghali 62
      brew install python3 --with-tcl-tk;
20505 craig 63
      brew outdated jpeg --verbose || brew upgrade jpeg;
64
      brew outdated libtiff --verbose || brew upgrade libtiff;
65
      brew outdated fontconfig --verbose || brew upgrade fontconfig;
66
      brew install openssl && brew link --force openssl;
67
      brew outdated pkg-config --verbose || brew upgrade pkg-config;
68
      brew outdated boost || brew upgrade boost;
69
      brew outdated freetype || brew upgrade freetype;
23278 jghali 70
      brew install librevenge libwpg libvisio libmspub libcdr libpagemaker libfreehand open-scene-graph;
20505 craig 71
    fi
72
  # - export LDFLAGS+=-L/usr/local/opt/zlib/lib:-L/usr/local/opt/gettext/lib:-L/usr/local/opt/libffi/lib:-L/usr/local/opt/qt5/lib:-L/usr/local/opt/sqlite/lib:-L/usr/local/opt/openssl/lib:-L/usr/local/opt/icu4c/lib
73
  # - export CXXFLAGS+=-I/usr/local/opt/zlib/include:-I/usr/local/opt/gettext/include:-I/usr/local/opt/qt5/include:-I/usr/local/opt/sqlite/include:-I/usr/local/opt/openssl/include:-I/usr/local/opt/icu4c/include
22809 jghali 74
 
20294 craig 75
script:
20505 craig 76
  - if [ $TRAVIS_OS_NAME == linux ]; then
23278 jghali 77
      source /opt/qt510/bin/qt510-env.sh;
20505 craig 78
      if [[ $CC == gcc ]]; then
79
        export NPROC=8;
80
      else
81
        export NPROC=1;
82
      fi;
22809 jghali 83
      cmake . -DCMAKE_INSTALL_PREFIX=/usr -DWANT_HUNSPELL=1 -DWITH_PODOFO=1 -DWANT_GRAPHICSMAGICK=1 -DWANT_DEBUG=0 -DWANT_SVNVERSION=0 -DWANT_GUI_LANG=en_US;
84
      make -j"$NPROC";
85
      make install;
86
      bash -ex ./AppImage-package/bundle.sh;
20294 craig 87
    fi
88
 
20505 craig 89
  - if [ $TRAVIS_OS_NAME = osx -a $CC = clang ]; then
22515 jghali 90
      cmake . -DWANT_HUNSPELL=1 -DWITH_PODOFO=1 -DWANT_NOOSG=1 -DWANT_DEBUG=0 -DWANT_SVNVERSION=0 -DWANT_GUI_LANG=en_US -DWANT_NOEXAMPLES=1 -DWANT_NOTEMPLATES=1 -DCMAKE_PREFIX_PATH=/usr/local/opt/zlib -DBUILD_OSX_BUNDLE=1 -DCMAKE_OSX_ARCHITECTURES="x86_64" -DQT_PREFIX=/usr/local/opt/qt5 -DCMAKE_INSTALL_PREFIX=~/.local;
21563 jghali 91
      make -j8;
21655 craig 92
      make install;
20505 craig 93
    fi
21563 jghali 94
 
20505 craig 95
notifications:
20844 jghali 96
  irc:
97
    channels:
98
    -  "chat.freenode.net#scribus"
99
    -  "chat.freenode.net#scribus-dev"
100
    template:
101
    - "%{repository}/%{branch} (%{author}): %{build_url}: %{message}"
102
    on_success: always
103
    on_failure: always
20294 craig 104