-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis-ci.sh
35 lines (29 loc) · 837 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
#!/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 repository add cordova https://github.com/dannywillems/ocaml-cordova-plugin-list.git 2> /dev/null
make init
make