Skip to content

Commit

Permalink
Add retrying downloading Jabba install script and cache it.
Browse files Browse the repository at this point in the history
  • Loading branch information
ihostage committed Jul 22, 2020
1 parent 65e3747 commit 5fdd81d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -11,7 +11,8 @@ before_install:
# fetch full history for correct current and previous version detection
- git fetch --unshallow
# using jabba for custom jdk management
- curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.11.1/install.sh | bash && . ~/.jabba/jabba.sh
- if [ ! -f ~/.jabba/jabba.sh ]; then curl -L -v --retry 5 -o jabba-install.sh https://raw.githubusercontent.com/shyiko/jabba/0.11.2/install.sh && bash jabba-install.sh; fi
- . ~/.jabba/jabba.sh
- jabba install adopt@~1.8-0
- jabba install adopt@~1.11-0

Expand Down Expand Up @@ -83,7 +84,7 @@ cache:
- $HOME/.cache/coursier
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.jabba/jdk
- $HOME/.jabba

env:
global:
Expand Down

0 comments on commit 5fdd81d

Please sign in to comment.