ocaml/.travis-ci.sh

36 lines
1.4 KiB
Bash

#########################################################################
# #
# OCaml #
# #
# Anil Madhavapeddy, OCaml Labs #
# #
# Copyright 2014 Institut National de Recherche en Informatique et #
# en Automatique. All rights reserved. This file is distributed #
# under the terms of the Q Public License version 1.0. #
# #
#########################################################################
case $XARCH in
i386)
myconfigure
make world.opt
sudo make install
(cd testsuite && make all)
mkdir external-packages
cd external-packages
git clone git://github.com/ocaml/camlp4
(cd camlp4 && ./configure && make && sudo make install)
git clone git://github.com/ocaml/opam
(cd opam && ./configure && make lib-ext && make && sudo make install)
git config --global user.email "some@name.com"
git config --global user.name "Some Name"
opam init -y -a git://github.com/ocaml/opam-repository
opam install -y oasis
# opam pin add -y utop git://github.com/diml/utop
;;
*)
echo unknown arch
exit 1
;;
esac