summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: ef630e1b15e482ce6bff58de089d5fc6c0cc6c88 (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
# Configuration for Travis-CI continuous integration.
#
# Copyright 2016, 2018-2019 Russ Allbery <eagle@eyrie.org>
#
# SPDX-License-Identifier: MIT

sudo: required
dist: bionic

language: c
compiler:
  - gcc
  - clang

# Perl::Tidy, Perl::Critic, and Test::Perl::Critic are installed
# separately to get the latest version, since they sometimes change
# formatting and style rules compared to the version in Ubuntu.
# Test::MinimumVersion has to be included since it installs Perl::Critic.
#
# Allow the installation of Perl::Critic and Test::Perl::Critic to fail,
# since this seems to fail regularly on Travis-CI.  (We'll just skip the
# test if it won't install.)

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -y cpanminus krb5-config libevent-dev libkrb5-dev libmodule-build-perl libpcre3-dev libtest-pod-perl libtest-pod-coverage-perl libtest-strict-perl libtest-synopsis-perl perl php-cli php-dev pkg-config python-all-dev ruby-all-dev
  - sudo cpanm Perl::Tidy
  - sudo cpanm Perl::Critic         || true
  - sudo cpanm Test::MinimumVersion || true
  - sudo cpanm Test::Perl::Critic   || true
env:
  - AUTHOR_TESTING=1
  - C_TAP_VERBOSE=1
script: ./bootstrap && ./configure --enable-perl --enable-php --enable-python --enable-ruby && make warnings && make check

branches:
  except:
    - /^debian\/.*/
    - java
    - pristine-tar
    - /^ubuntu\/.*/
    - /^upstream\/.*/