Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Travis CI build scripts

  • Loading branch information...
commit 463372e8f8957bbc015cf279d7322d5033797369 1 parent 878b2a2
@kerneis kerneis authored
Showing with 38 additions and 0 deletions.
  1. +29 −0 .travis-ci.sh
  2. +9 −0 .travis.yml
View
29 .travis-ci.sh
@@ -0,0 +1,29 @@
+OPAM_DEPENDS="ocamlfind"
+
+case "$OCAML_VERSION,$OPAM_VERSION" in
+3.12.1,1.0.0) ppa=avsm/ocaml312+opam10 ;;
+3.12.1,1.1.0) ppa=avsm/ocaml312+opam11 ;;
+4.00.1,1.0.0) ppa=avsm/ocaml40+opam10 ;;
+4.00.1,1.1.0) ppa=avsm/ocaml40+opam11 ;;
+4.01.0,1.0.0) ppa=avsm/ocaml41+opam10 ;;
+4.01.0,1.1.0) ppa=avsm/ocaml41+opam11 ;;
+*) echo Unknown $OCAML_VERSION,$OPAM_VERSION; exit 1 ;;
+esac
+
+echo "yes" | sudo add-apt-repository ppa:$ppa
+sudo apt-get update -qq
+sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam
+export OPAMYES=1
+export OPAMVERBOSE=1
+echo OCaml version
+ocaml -version
+echo OPAM versions
+opam --version
+opam --git-version
+
+opam init
+opam install ${OPAM_DEPENDS}
+eval `opam config env`
+./configure
+make
+make test
View
9 .travis.yml
@@ -0,0 +1,9 @@
+language: c
+script: bash -ex .travis-ci.sh
+env:
+- OCAML_VERSION=4.01.0 OPAM_VERSION=1.0.0
+- OCAML_VERSION=4.01.0 OPAM_VERSION=1.1.0
+- OCAML_VERSION=4.00.1 OPAM_VERSION=1.0.0
+- OCAML_VERSION=4.00.1 OPAM_VERSION=1.1.0
+- OCAML_VERSION=3.12.1 OPAM_VERSION=1.0.0
+- OCAML_VERSION=3.12.1 OPAM_VERSION=1.1.0
Please sign in to comment.
Something went wrong with that request. Please try again.