forked from whitequark/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis-ci.sh
35 lines (34 loc) · 1.42 KB
/
.travis-ci.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#########################################################################
# #
# 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)
./configure
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 "[email protected]"
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