Skip to content

Commit

Permalink
Try to keep opam build to avoid recompiling ocaml and Coq each time
Browse files Browse the repository at this point in the history
  • Loading branch information
mattam82 committed Dec 17, 2018
1 parent cc0b150 commit ef6395d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -3,6 +3,9 @@ sudo: required
language: c
cache:
apt: true
directories:
- $HOME/.opam
- $HOME/bin

addons:
apt:
Expand All @@ -21,8 +24,7 @@ env:
install:
- curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh > install.sh
- export PATH=$HOME/bin:$PATH
- which opam || (rm -rf $HOME/.opam; echo $HOME/bin | sudo sh install.sh --no-backup)
- opam init --disable-sandboxing -j ${NJOBS} --compiler=${COMPILER} -n -y
- which opam || (rm -rf $HOME/.opam; echo $HOME/bin | sudo sh install.sh --no-backup; opam init --disable-sandboxing -j ${NJOBS} --compiler=${COMPILER} -n -y)
- opam --version
- opam update
- eval $(opam config env)
Expand Down

0 comments on commit ef6395d

Please sign in to comment.