forked from scribusproject/scribus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (63 loc) · 3.74 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: cpp
os: linux
dist: bionic
compiler:
- clang
- gcc
env:
- NPROC=2
before_install:
- sudo apt-get install -y apt-transport-https ca-certificates gnupg software-properties-common wget
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
- sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' -y
- sudo apt-add-repository ppa:beineri/opt-qt-5.14.2-bionic -y
- sudo apt-get update -qq
install:
- sudo apt-get install --force-yes cmake libboost-python-dev libcairo2-dev libcdr-dev libcups2-dev libfreehand-dev libharfbuzz-dev libharfbuzz-icu0 libgraphicsmagick++1-dev libhunspell-dev libhyphen-dev liblcms2-dev libmspub-dev libopenscenegraph-dev libpagemaker-dev libpng-dev libpodofo-dev libpoppler-dev libpoppler-cpp-dev libpoppler-private-dev libqxp-dev libtiff-dev libvisio-dev libwpg-dev libxml2-dev libzmf-dev python3-all-dev python3-tk qt514base qt514declarative qt514imageformats qt514tools zlib1g-dev coreutils binutils poppler-data
script:
- source /opt/qt514/bin/qt514-env.sh
- 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
- make -j"$NPROC"
- sudo make install
- sudo bash -ex ./AppImage-package/bundle.sh
jobs:
include:
os: osx
before_install:
- brew update
install:
- brew outdated cmake || brew upgrade cmake
- brew outdated zlib || brew upgrade zlib
- brew outdated icu4c || brew upgrade icu4c
- brew outdated xz || brew upgrade xz
- brew outdated cairo || brew upgrade cairo
- brew outdated qt5 || brew upgrade qt5
- brew outdated little-cms2 || brew upgrade little-cms2
- brew outdated poppler || brew upgrade poppler
- brew outdated python || brew unlink python@2 && brew upgrade python
- brew outdated jpeg || brew upgrade jpeg
- brew outdated libpng || brew upgrade libpng
- brew outdated libtiff || brew upgrade libtiff
- brew outdated fontconfig || brew upgrade fontconfig
- brew outdated pkg-config || brew upgrade pkg-config
- brew outdated boost || brew upgrade boost
- brew outdated freetype || brew upgrade freetype
- brew outdated openssl || brew upgrade openssl
- brew install hunspell podofo ghostscript graphicsmagick harfbuzz librevenge libwpg libvisio libmspub libcdr libpagemaker libfreehand # open-scene-graph
before_script:
- export PKG_CONFIG_PATH="$(pkg-config --variable pc_path pkg-config):/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/qt/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig"
- export LDFLAGS="-L/usr/local/opt/zlib/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/qt/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/hunspell/lib"
- 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 -I/usr/local/opt/hunspell/include"
script:
- cmake . -DCMAKE_INSTALL_PREFIX=~/.local -DWANT_HUNSPELL=1 -DWITH_PODOFO=1 -DWANT_GRAPHICSMAGICK=1 -DWANT_DEBUG=0 -DWANT_SVNVERSION=0 -DWANT_GUI_LANG=en_US -DWANT_NOOSG=1 -DBUILD_OSX_BUNDLE=1 -DCMAKE_OSX_ARCHITECTURES=x86_64 -DQT_PREFIX=/usr/local/opt/qt
- make -j"$NPROC"
- make install
notifications:
irc:
channels:
# - "irc.libera.chat#scribus"
# - "irc.libera.chat#scribus-dev"
template:
- "%{repository}/%{branch} (%{author}): %{build_url}: %{message}"
on_success: always
on_failure: always