-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis-ci.sh
42 lines (33 loc) · 987 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
39
40
41
42
#!/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
URL=https://github.com/dannywillems/ocaml-cordova-plugin-toast.git
PLUGIN_PIN=cordova-plugin-toast
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 install ocamlfind gen_js_api
# Test for make and make clean
make && make clean
# Test for make install and make remove
make install && make remove && make clean