-
Notifications
You must be signed in to change notification settings - Fork 3
/
.run-test.sh
30 lines (24 loc) · 871 Bytes
/
.run-test.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
#!/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-push.git
PLUGIN_PIN=cordova-plugin-push
opam install -y ocamlfind ppx_tools js_of_ocaml gen_js_api
eval $(opam env)
# Test for make and make clean
make && make clean
# Test for make install and make remove
make install && make remove && make clean
# Test for the pin and -package
opam pin add ${PLUGIN_PIN} ${URL} -y