-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis-ci.sh
38 lines (31 loc) · 991 Bytes
/
.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
36
37
38
#!/bin/bash -
#===============================================================================
#
# FILE: .travis-ci.sh
#
# USAGE: ./.travis-ci.sh
#
# DESCRIPTION: Generate the ml file and compile
#
# AUTHOR: Danny Willems <contact@danny-willems.be>
# CREATED: 04/06/2016 11:26
# REVISION: 1.0
#===============================================================================
set -o nounset # Treat unset variables as an error
export OPAMYES=1
if [ -f "$HOME/.opam/config" ]; then
opam update
opam upgrade
else
opam init
fi
if [ -n "${OPAM_SWITCH}" ]; then
opam switch ${OPAM_SWITCH}
fi
eval `opam config env`
export OCAMLRUNPARAM=b
opam pin add jsoo_lib https://github.com/dannywillems/jsoo-lib.git
opam pin add ocaml-js-materialize-css https://github.com/dannywillems/ocaml-js-materialize-css.git
opam repository add cordova https://github.com/dannywillems/ocaml-cordova-plugin-list.git
make init
make