Rev 21552 | Rev 21655 | 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 |
21563 | jghali | 25 | - if [ $TRAVIS_OS_NAME == linux ]; then |
21507 | craig | 26 | sudo apt-add-repository ppa:beineri/opt-qt57-trusty -y; |
21563 | jghali | 27 | sudo apt-add-repository ppa:as-bahanta/raqm -y; |
21507 | craig | 28 | sudo apt-add-repository ppa:ricotz/testing -y; |
21563 | jghali | 29 | sudo apt-get update -qq; |
21508 | craig | 30 | sudo apt-get install --force-yes cmake libboost-python-dev libcups2-dev libhunspell-dev |
20505 | craig | 31 | libhyphen-dev liblcms2-dev libpodofo-dev libtiff-dev libxml2-dev |
21472 | craig | 32 | python-all-dev zlib1g-dev qt57base qt57declarative |
33 | qt57tools libgraphicsmagick++1-dev |
||
20505 | craig | 34 | libopenscenegraph-dev libpoppler-dev libcairo2-dev libwpg-dev libmspub-dev |
21563 | jghali | 35 | libcdr-dev libvisio-dev libharfbuzz-dev libharfbuzz-icu0 |
21550 | craig | 36 | coreutils binutils python-tk; |
20505 | craig | 37 | fi |
38 | # OSX |
||
39 | # - if [ $TRAVIS_OS_NAME == osx ]; then brew --env && brew config && brew list; fi |
||
40 | - if [ $TRAVIS_OS_NAME == osx ]; then brew update; |
||
41 | brew outdated cmake --verbose || brew upgrade cmake; |
||
42 | brew tap homebrew/dupes && brew install homebrew/dupes/zlib && brew link --force zlib; |
||
21563 | jghali | 43 | brew install icu4c && brew link --force icu4c; |
44 | brew install xz little-cms2 cairo qt5 hunspell ghostscript graphicsmagick poppler podofo harfbuzz; |
||
20505 | craig | 45 | brew outdated jpeg --verbose || brew upgrade jpeg; |
46 | brew outdated libtiff --verbose || brew upgrade libtiff; |
||
47 | brew outdated fontconfig --verbose || brew upgrade fontconfig; |
||
48 | brew install openssl && brew link --force openssl; |
||
49 | brew outdated pkg-config --verbose || brew upgrade pkg-config; |
||
50 | brew outdated boost || brew upgrade boost; |
||
51 | brew outdated freetype || brew upgrade freetype; |
||
21563 | jghali | 52 | brew install librevenge libwpg libvisio libmspub libcdr libpagemaker libfreehand open-scene-graph; |
20505 | craig | 53 | fi |
54 | # - 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 |
||
55 | # - 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 | 56 | |
57 | script: |
||
20505 | craig | 58 | - if [ $TRAVIS_OS_NAME == linux ]; then |
21472 | craig | 59 | source /opt/qt57/bin/qt57-env.sh; |
20505 | craig | 60 | if [[ $CC == gcc ]]; then |
61 | export NPROC=8; |
||
62 | else |
||
63 | export NPROC=1; |
||
64 | fi; |
||
21563 | jghali | 65 | cmake . -DWANT_HUNSPELL=1 -DWITH_PODOFO=1 -DWANT_GRAPHICSMAGICK=1 -DWANT_DEBUG=0 -DWANT_SVNVERSION=0 -DWANT_GUI_LANG=en_US; |
20505 | craig | 66 | make -j"$NPROC"; |
20294 | craig | 67 | fi |
68 | |||
20505 | craig | 69 | - if [ $TRAVIS_OS_NAME = osx -a $CC = clang ]; then |
20996 | jghali | 70 | cmake . -DWANT_HUNSPELL=1 -DWITH_PODOFO=1 -DWANT_GRAPHICSMAGICK=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; |
21563 | jghali | 71 | make -j8; |
20505 | craig | 72 | fi |
21563 | jghali | 73 | |
20505 | craig | 74 | notifications: |
20844 | jghali | 75 | irc: |
76 | channels: |
||
77 | - "chat.freenode.net#scribus" |
||
78 | - "chat.freenode.net#scribus-dev" |
||
79 | template: |
||
80 | - "%{repository}/%{branch} (%{author}): %{build_url}: %{message}" |
||
81 | on_success: always |
||
82 | on_failure: always |
||
20294 | craig | 83 |