forked from deltachat/deltachat-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (60 loc) · 1.88 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
sudo: required
language: c
env:
global:
- DEPLOY_USER=delta DEPLOY_SERVER="py.delta.chat"
matrix:
- MESONARGS="" DOCS=t TESTS=t
- MESONARGS="-Dmonolith=true" TESTS=t
- MESONARGS="--default-library=static"
- MESONARGS="--wrap-mode=forcefallback --default-library=static"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
# for newer doxygen: - sourceline: 'ppa:libreoffice/ppa'
packages:
- python3-pip
- python3.5
- g++-7
- libssl-dev
- libsqlite3-dev
- libbz2-dev
- zlib1g-dev
- python3.5-dev
- python-software-properties
- doxygen
install:
- export CC=gcc-7
- export CXX=g++-7
- sudo ln -sf /usr/bin/python3.5 /usr/bin/python3
- sudo pip3 install meson
- wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
- unzip ninja-linux.zip
- sudo cp ninja /usr/bin
- wget http://http.debian.net/debian/pool/main/c/cyrus-sasl2/cyrus-sasl2_2.1.27~101-g0780600+dfsg.orig.tar.xz
- tar xfv cyrus-sasl2_2.1.27~101-g0780600+dfsg.orig.tar.xz
- pushd cyrus-sasl2-2.1.27~101-g0780600+dfsg.orig && ./autogen.sh && make && sudo make install && popd
script:
- doxygen --version
- mkdir -p builddir && pushd builddir
- meson $MESONARGS && ninja -v && sudo ninja install
- export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
- sudo ldconfig -v
- popd && pushd docs
- if [ -n "$DOCS" ]; then doxygen; fi
- popd && pushd python
- virtualenv -p /usr/bin/python3.5 venv
- source venv/bin/activate
- pip install tox
- if [ -e /usr/local/lib/x86_64-linux-gnu/libdeltachat.so ]; then ldd /usr/local/lib/x86_64-linux-gnu/libdeltachat.so; fi
- if [ -n "$TESTS" ]; then tox; fi
- if [ -n "$DOCS" ]; then tox -e doc; fi
- popd
deploy:
provider: script
skip_cleanup: true
script: bash $TRAVIS_BUILD_DIR/.scripts/deploy.sh
on:
all_branches: true
condition: $DOCS