-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add multidistro Travis testing support
This adds support for testing on Debian, Ubuntu, CentOS, Fedora and Alpine (which was broken in the 2.1 release)
- Loading branch information
Showing
1 changed file
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |