Project

General

Profile

Revision 63b3db9c

View differences:

.travis-ci.sh
1
OPAM_DEPENDS="ocamlfind ounit re"
2

  
3
case "$OCAML_VERSION,$OPAM_VERSION" in
4
    3.12.1,1.0.0) ppa=avsm/ocaml312+opam10 ;;
5
    3.12.1,1.1.0) ppa=avsm/ocaml312+opam11 ;;
6
    4.00.1,1.0.0) ppa=avsm/ocaml40+opam10 ;;
7
    4.00.1,1.1.0) ppa=avsm/ocaml40+opam11 ;;
8
    4.01.0,1.0.0) ppa=avsm/ocaml41+opam10 ;;
9
    4.01.0,1.1.0) ppa=avsm/ocaml41+opam11 ;;
10
    *) echo Unknown $OCAML_VERSION,$OPAM_VERSION; exit 1 ;;
11
esac
12

  
13
echo "yes" | sudo add-apt-repository ppa:$ppa
14
sudo apt-get update -qq
15
sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam
16
export OPAMYES=1
17
opam init
18
opam install ${OPAM_DEPENDS}
19
eval `opam config env`
20
autoconf
21
./configure
22
make
.travis.yml
1
language: c
2
script: bash -ex .travis-ci.sh
3
env:
4
  - OCAML_VERSION=4.01.0 OPAM_VERSION=1.0.0
5
  - OCAML_VERSION=4.01.0 OPAM_VERSION=1.1.0
6
  - OCAML_VERSION=4.00.1 OPAM_VERSION=1.0.0
7
  - OCAML_VERSION=4.00.1 OPAM_VERSION=1.1.0
8
  - OCAML_VERSION=3.12.1 OPAM_VERSION=1.0.0
9
  - OCAML_VERSION=3.12.1 OPAM_VERSION=1.1.0
10

  
11
notifications:
12
  email:
13
    recipients:
14
     - lememta@gmail.com
15
    on_success: always
16
    on_failure: always

Also available in: Unified diff