Skip to content

Commit

Permalink
Attempt to fix jdk installation in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kawamuray committed May 27, 2020
1 parent 88cb4dd commit c61ecea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
language: rust
rust:
- stable
# We need to keep using this dist to make oraclejdk8 installation work.
# https://travis-ci.community/t/install-of-oracle-jdk-8-failing/3038/9
dist: trusty
jdk:
- oraclejdk8
before_install:
- sudo apt-get install -y curl llvm-dev libclang-dev gcc musl-tools
- jdk_switcher use "oraclejdk8"
# https://docs.travis-ci.com/user/languages/java/#caching
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
- cargo
- directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script: ./build.sh
before_deploy:
- .travis/build-musl-bin-dist.sh
Expand Down

0 comments on commit c61ecea

Please sign in to comment.