Subversion Repositories Scribus

Rev

Rev 22515 | Rev 22809 | 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
21563 jghali 27
- if [ $TRAVIS_OS_NAME == linux ]; then
22777 jghali 28
      sudo apt-add-repository ppa:beineri/opt-qt595-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;
21508 craig 32
      sudo apt-get install --force-yes cmake libboost-python-dev libcups2-dev libhunspell-dev
20505 craig 33
      libhyphen-dev liblcms2-dev libpodofo-dev libtiff-dev libxml2-dev
22777 jghali 34
      python-all-dev zlib1g-dev qt59base qt59declarative
35
      qt59tools libgraphicsmagick++1-dev
22155 jghali 36
      libopenscenegraph-dev libpoppler-dev libpoppler-cpp-dev libcairo2-dev libwpg-dev
37
      libmspub-dev libcdr-dev libvisio-dev libharfbuzz-dev libharfbuzz-icu0
21550 craig 38
      coreutils binutils python-tk;
20505 craig 39
    fi
40
# OSX
41
# - if [ $TRAVIS_OS_NAME == osx ]; then brew --env && brew config && brew list; fi
42
- if [ $TRAVIS_OS_NAME == osx ]; then brew update;
43
      brew outdated cmake --verbose || brew upgrade cmake;
44
      brew tap homebrew/dupes && brew install homebrew/dupes/zlib && brew link --force zlib;
21563 jghali 45
      brew install icu4c && brew link --force icu4c;
46
      brew install xz little-cms2 cairo qt5 hunspell ghostscript graphicsmagick poppler podofo harfbuzz;
20505 craig 47
      brew outdated jpeg --verbose || brew upgrade jpeg;
48
      brew outdated libtiff --verbose || brew upgrade libtiff;
49
      brew outdated fontconfig --verbose || brew upgrade fontconfig;
50
      brew install openssl && brew link --force openssl;
51
      brew outdated pkg-config --verbose || brew upgrade pkg-config;
52
      brew outdated boost || brew upgrade boost;
53
      brew outdated freetype || brew upgrade freetype;
21563 jghali 54
      brew install librevenge libwpg libvisio libmspub libcdr libpagemaker libfreehand open-scene-graph;
20505 craig 55
    fi
56
  # - 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
57
  # - 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
20294 craig 58
 
59
script:
20505 craig 60
  - if [ $TRAVIS_OS_NAME == linux ]; then
22777 jghali 61
      source /opt/qt59/bin/qt59-env.sh;
20505 craig 62
      if [[ $CC == gcc ]]; then
63
        export NPROC=8;
64
      else
65
        export NPROC=1;
66
      fi;
21688 mrdocs 67
    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;
20505 craig 68
    make -j"$NPROC";
21655 craig 69
    make install;
21688 mrdocs 70
    bash -ex ./AppImage-package/bundle.sh;
20294 craig 71
    fi
72
 
20505 craig 73
  - if [ $TRAVIS_OS_NAME = osx -a $CC = clang ]; then
22515 jghali 74
      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 75
      make -j8;
21655 craig 76
      make install;
20505 craig 77
    fi
21563 jghali 78
 
20505 craig 79
notifications:
20844 jghali 80
  irc:
81
    channels:
82
    -  "chat.freenode.net#scribus"
83
    -  "chat.freenode.net#scribus-dev"
84
    template:
85
    - "%{repository}/%{branch} (%{author}): %{build_url}: %{message}"
86
    on_success: always
87
    on_failure: always
20294 craig 88