Subversion Repositories Scribus

Rev

Rev 20505 | Rev 20844 | 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
6
      dist: trusty
7
      sudo: required
8
      compiler:
9
        - gcc
10
    - os: linux
11
      dist: trusty
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
20294 craig 22
 
23
before_install:
20505 craig 24
# Linux
25
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update -qq;
26
      sudo apt-get install -y cmake libboost-python-dev libcups2-dev libhunspell-dev
27
      libhyphen-dev liblcms2-dev libpodofo-dev libtiff-dev libxml2-dev
28
      python-all-dev zlib1g-dev qtbase5-dev qtdeclarative5-dev libqt5opengl5-dev
29
      qttools5-dev qttools5-dev-tools libgraphicsmagick++1-dev
30
      libopenscenegraph-dev libpoppler-dev libcairo2-dev libwpg-dev libmspub-dev
31
      libcdr-dev libvisio-dev;
32
    fi
33
# OSX
34
# - if [ $TRAVIS_OS_NAME == osx ]; then brew --env && brew config && brew list; fi
35
- if [ $TRAVIS_OS_NAME == osx ]; then brew update;
36
      brew outdated cmake --verbose || brew upgrade cmake;
37
      brew tap homebrew/dupes && brew install homebrew/dupes/zlib && brew link --force zlib;
38
      brew install xz little-cms2 cairo qt5 hunspell ghostscript graphicsmagick poppler podofo;
39
      brew outdated jpeg --verbose || brew upgrade jpeg;
40
      brew outdated libtiff --verbose || brew upgrade libtiff;
41
      brew outdated fontconfig --verbose || brew upgrade fontconfig;
42
      brew install openssl && brew link --force openssl;
43
      brew outdated pkg-config --verbose || brew upgrade pkg-config;
44
      brew outdated boost || brew upgrade boost;
45
      brew outdated freetype || brew upgrade freetype;
46
      brew install librevenge libwpg libvisio libmspub libcdr libpagemaker libfreehand open-scene-graph;
47
    fi
48
  # - 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
49
  # - 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 50
 
51
script:
20505 craig 52
  - if [ $TRAVIS_OS_NAME == linux ]; then
53
      if [[ $CC == gcc ]]; then
54
        export NPROC=8;
55
      else
56
        export NPROC=1;
57
      fi;
58
    cmake . -DWANT_HUNSPELL=1 -DWITH_PODOFO=1 -DWANT_GRAPHICSMAGICK=1 -DWANT_DEBUG=0 -DWANT_SVNVERSION=0 -DWANT_GUI_LANG=en_US;
59
    make -j"$NPROC";
20294 craig 60
    fi
20505 craig 61
 
20294 craig 62
 
20505 craig 63
  - if [ $TRAVIS_OS_NAME = osx -a $CC = clang ]; then
64
      cmake . -DCMAKE_PREFIX_PATH=/usr/local/opt/zlib -DBUILD_OSX_BUNDLE=1 -DQT_PREFIX=/usr/local/opt/qt5 -DWANT_HUNSPELL=1 -DWITH_PODOFO=1 -DWANT_GRAPHICSMAGICK=1 -DWANT_DEBUG=0 -DWANT_SVNVERSION=0 -DWANT_GUI_LANG=en_US;
65
      make -j8;
66
      make install;
67
    fi
68
 
69
notifications:
70
  - email: false
71
  - irc:
72
    -  channels:
20770 jghali 73
    - "chat.freenode.net#scribus"
20505 craig 74
    -  template:
75
    - "%{repository}/%{branch} (%{commit} - %{author}): %{build_url}: %{message}"
76
    -  on_success: always
77
    -  on_failure: always
20294 craig 78