Skip to content

Commit

Permalink
add multidistro Travis testing support
Browse files Browse the repository at this point in the history
This adds support for testing on Debian, Ubuntu, CentOS, Fedora
and Alpine (which was broken in the 2.1 release)
  • Loading branch information
avsm committed Mar 10, 2016
1 parent 7433d66 commit aecec74
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
language: c
sudo: false
services:
- docker
install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh
script: bash ./.travis-docker.sh
env:
- OPAM_PACKAGES="lwt ounit fileutils oasis"
script:
- echo "yes" | sudo add-apt-repository ppa:avsm/ppa
- sudo apt-get update -qq
- sudo apt-get install -qq ocaml opam
- export OPAMYES=1
- opam init
- eval `opam config env`
- opam install -q -y oasis ${OPAM_PACKAGES}
- ./configure --enable-tests --enable-lwt
- make test
global:
- PACKAGE="inotify"
- PRE_INSTALL_HOOK="opam depext -ui oasis fileutils pcre"
- DEPOPTS="lwt"
matrix:
- DISTRO=debian-stable OCAML_VERSION=4.02.3
- DISTRO=debian-testing OCAML_VERSION=4.02.3
- DISTRO=debian-unstable OCAML_VERSION=4.02.3
- DISTRO=ubuntu-12.04 OCAML_VERSION=4.01.0
- DISTRO=ubuntu-15.10 OCAML_VERSION=4.02.3
- DISTRO=ubuntu-16.04 OCAML_VERSION=4.02.3
- DISTRO=centos-6 OCAML_VERSION=4.01.0
- DISTRO=centos-7 OCAML_VERSION=4.02.3
- DISTRO=fedora-23 OCAML_VERSION=4.02.3
- DISTRO=alpine-3.3 OCAML_VERSION=4.02.3

0 comments on commit aecec74

Please sign in to comment.