Skip to content

Commit

Permalink
Enable caching of OPAM folders to speed up builds.
Browse files Browse the repository at this point in the history
Rebuilding everything from scratch is what takes a long time, so adding
a cache might be potentially very helpful. I have successfully applied
this to my own projects so I am hoping it might be helpful here as well.
  • Loading branch information
Leonidas-from-XIV committed Jan 15, 2020
1 parent 247243e commit 89f6106
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ sudo: required
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh
script: bash -ex .travis-opam.sh
dist: bionic
cache:
directories:
- $HOME/.opam
env:
global:
- DEPOPTS="*"
Expand Down

0 comments on commit 89f6106

Please sign in to comment.