bash -ex .travis-opam.sh
eval $(opam config env)
ocaml_version=$(opam config var ocaml-version)

function build_js () {
    opam install js_of_ocaml
    make js
}

case $ocaml_version in
    4.02.2)
        build_js
        ;;
    *)
        echo "Unknown ocaml version: $ocaml_version"
        exit 1
        ;;
esac

make doc
bash -ex .ci-indent.sh

bash -ex .travis-opam.sh
eval $(opam config env)
ocaml_version=$(opam config var ocaml-version)

function build_js () {
    opam install js_of_ocaml
    make js
}

case $ocaml_version in
    4.02.3)
        build_js
        ;;
    4.03.0)
        build_js
        ;;
    *)
        echo "Unknown ocaml version: $ocaml_version"
        exit 1
        ;;
esac

make doc
bash -ex .ci-indent.sh

Support js for 4.02.3 and 4.03.0
Support js for 4.02.3 and 4.03.0
