summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 006617df14bbb9fb7857a00f0fd4160fff95f8d9 (plain)
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
language: c

compiler:
    - gcc
    - clang

sudo: required
dist: trusty

env:
    - BUILDTOOL="cmake" BUILDARGS=""
    # - BUILDTOOL="cmake" BUILDARGS="-DENABLE_PYTHON3=ON"
    - BUILDTOOL="cmake" BUILDARGS="-DENABLE_GNUTLS=OFF"
    - BUILDTOOL="autotools" BUILDARGS=""
    # - BUILDTOOL="autotools" BUILDARGS="--enable-python3"
    - BUILDTOOL="autotools" BUILDARGS="--disable-gnutls"

before_script:
    # Workaround https://github.com/travis-ci/travis-ci/issues/5326
    - export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
    - echo 'APT::Install-Recommends "false";' | sudo tee -a /etc/apt/apt.conf
    - sudo add-apt-repository -y ppa:ondrej/php
    - travis_retry sudo apt-get update -qq
    - travis_retry sudo apt-get -y install devscripts equivs python-pip libenchant-dev autopoint cmake pkg-config libncursesw5-dev gem2deb libperl-dev python-dev python3-dev libaspell-dev liblua5.1-0-dev tcl8.5-dev guile-2.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt11-dev libgnutls-dev zlib1g-dev curl libcpputest-dev php7.0-dev libphp7.0-embed
    - travis_retry sudo gem install asciidoctor
    - travis_retry sudo pip install msgcheck pylint
    - phpenv local system

script:
    - ./tools/build-test.sh
    - msgcheck po/*.po
    - pylint --version
    - pylint doc/docgen.py
    - pylint tests/scripts/python/testapigen.py
    - pylint tests/scripts/python/testapi.py
    - pylint tests/scripts/python/unparse.py
    - ./tools/build-debian.sh test-patches

after_success:
    - weechat --help
    - weechat-curses --help
    - weechat --colors
    - weechat --license
    - weechat --version
    - weechat --temp-dir --run-command "/debug dirs;/debug libs" --run-command "/quit"

matrix:
    fast_finish: true