Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / .travis-ci.sh @ 36a05029

History | View | Annotate | Download (661 Bytes)

1
OPAM_DEPENDS="ocamlfind ocamlgraph"
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