aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorGravatar Théo Zimmermann <theo.zimmermann@univ-paris-diderot.fr>2018-05-09 20:22:33 +0200
committerGravatar Théo Zimmermann <theo.zimmermann@univ-paris-diderot.fr>2018-05-09 20:22:33 +0200
commit42c6b8f3b13cc5e974a129fe81481e64c9a8a182 (patch)
tree17f7ab4c276678b608477e35709088fba0c6379f /.travis.yml
parent9c56ba489abea0e1bfdebc5da9a77ba217de72fa (diff)
[travis] Add explicit opam switch command to guarantee we're using the requested compiler.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index bd2be1ff7..08b255cdf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -278,6 +278,7 @@ install:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then travis_retry ./dev/tools/sudo-apt-get-update.sh -q; fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then sudo apt-get install -y opam aspcud gcc-multilib; fi
- opam init -j ${NJOBS} --compiler=${COMPILER} -n -y
+- opam switch "$COMPILER" && opam update
- eval $(opam config env)
- opam config list
- opam install -j ${NJOBS} -y num camlp5${CAMLP5_VER} ocamlfind${FINDLIB_VER} ${EXTRA_OPAM}