Permalink
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 661 Bytes
echo -en "travis_fold:start:prepare.ci\r"
# If a fork of these scripts is specified, use that GitHub user instead
fork_user=${FORK_USER:-ocaml}
# If a branch of these scripts is specified, use that branch instead of 'master'
fork_branch=${FORK_BRANCH:-master}
### Bootstrap
set -uex
sh .travis-ocaml.sh
export OPAMYES=1
eval $(opam config env)
opam depext -y conf-m4
opam pin add travis-opam https://github.com/${fork_user}/ocaml-ci-scripts.git#${fork_branch}
cp ~/.opam/$(opam switch show)/bin/ci-opam ~/
opam remove -a travis-opam
mv ~/ci-opam ~/.opam/$(opam switch show)/bin/ci-opam
echo -en "travis_fold:end:prepare.ci\r"
opam config exec -- ci-opam