#!/bin/bash

set -e
set -x

# Move to a location relative to the script so it runs
# from anywhere.
cd $(dirname ${BASH_SOURCE[0]})/..

export PATH=$PWD/../ocaml/install/bin:$PATH

ocamlbuild -libs "bigarray, str" -Is "given, spec, host" main.native

./runtests.py

#!/bin/bash

set -e
set -x

# Move to a location relative to the script so it runs
# from anywhere.
cd $(dirname ${BASH_SOURCE[0]})/..

export PATH=$PWD/../ocaml/install/bin:$PATH

make

./runtests.py

Change the travis build to use the Makefile.
Change the travis build to use the Makefile.

This avoids duplicating the ocamlbuild command-line, and creates
an executable named wasm instead of "main.native".
