Moved more commands in before_install for travis

This commit is contained in:
Guillaume Bury 2016-07-23 13:58:45 +02:00
parent 13effa8969
commit 0a4b812924
2 changed files with 5 additions and 7 deletions

View file

@ -1,14 +1,7 @@
# Edit this for your own project dependencies
OPAM_DEPENDS="ocamlfind ocamlbuild"
export OPAMYES=1
export OPAMVERBOSE=1
opam init
opam switch ${OCAML_VERSION}
eval `opam config env`
opam install ${OPAM_DEPENDS}
eval `opam config env`
make lib
make bin

View file

@ -5,6 +5,11 @@ before_install:
- echo "yes" | sudo add-apt-repository ppa:avsm/ocaml42+opam12
- sudo apt-get update -qq
- sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam
- export OPAMYES=1
- export OPAMVERBOSE=1
- opam init
- opam switch ${OCAML_VERSION}
- eval `opam config env`
env:
- OCAML_VERSION=4.00.1
- OCAML_VERSION=4.01.0