Skip to content

Commit

Permalink
Fix travis script to use opam init from the ocaml-ci-script
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Feb 19, 2020
1 parent b555603 commit 186fbbc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion .travis-ci-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-ocaml.sh

export OPAM_INIT=false
export BASE_REMOTE="."
bash -ex .travis-ocaml.sh
9 changes: 0 additions & 9 deletions .travis-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ cat pullreq.diff | sed -E -n -e 's,\+\+\+ b/packages/[^/]*/([^/]*)/.*,\1,p' | so
echo To Build:
cat tobuild.txt

function build_switch {
rm -rf ~/.opam
echo "build switch: $OPAM_SWITCH"
opam init . --comp=$OPAM_SWITCH
eval `opam config env`
}

function build_one {
pkg=$1
echo "build one: $pkg"
Expand Down Expand Up @@ -93,8 +86,6 @@ function build_one {
fi
}

build_switch

echo OCaml version
ocaml -version
echo OPAM versions
Expand Down

0 comments on commit 186fbbc

Please sign in to comment.