8000 Use AdoptOpenJDK JDK 8 for testing [ci: last-only] by eed3si9n · Pull Request #7931 · scala/scala · GitHub
[go: up one dir, main page]

Skip to content

Use AdoptOpenJDK JDK 8 for testing [ci: last-only] #7931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 22 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# GCE VMs have better performance (will be upgrading to premium VMs soon)
sudo: required

dist: xenial
group: stable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so did we decide to keep those two entries in the end?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did attempt to removed it, but for some reason Travis CI picked up trusty - https://travis-ci.org/scala/scala/jobs/556437704#L7-L9

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Thanks!

language: scala
jdk: openjdk8

cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.rvm/
before_install:
# adding $HOME/.sdkman to cache would create an empty directory, which interferes with the initial installation
- "[[ -d $HOME/.sdkman/bin/ ]] || rm -rf $HOME/.sdkman/"
- curl -sL https://get.sdkman.io | bash
- echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config
- source "$HOME/.sdkman/bin/sdkman-init.sh"

install:
- sdk install java $(sdk list java | grep -o "$ADOPTOPENJDK\.[0-9\.]*hs-adpt" | head -1)
- java -Xmx32m -version
- javac -J-Xmx32m -version

stages:
- name: build
Expand Down Expand Up @@ -38,6 +42,7 @@ jobs:

# pull request validation (w/ mini-bootstrap)
- stage: build
name: "JDK 8 pr validation"
if: type = pull_request
script:
- sbt -warn setupPublishCore generateBuildCharacterPropertiesFile headerCheck publishLocal
Expand All @@ -48,10 +53,8 @@ jobs:
- stage: build
language: ruby
install:
- rvm install 2.2
- rvm use 2.2
- rvm info
- ruby -v
- gem install bundler
- bundler --version
- bundle install
script:
Expand All @@ -62,6 +65,7 @@ jobs:

env:
global:
- ADOPTOPENJDK=8
- secure: "TuJOUtALynPd+MV1AuMeIpVb8BUBHr7Ul7FS48XhS2PyuTRpEBkSWybYcNg3AXyzmWDAuOjUxbaNMQBvP8vvehTbIYls5H5wTGKvj0D0TNVaPIXjF8bA8KyNat9xGNzhnWm2/2BMaWpKBJWRF7Jb+zHhijMYCJEbkMtoiE5R/mY=" # PRIV_KEY_SECRET, for scripts/travis-publish-spec.sh
- secure: "T1fxtvLTxioyXJYiC/zVYdNYsBOt+0Piw+xE04rB1pzeKahm9+G2mISdcAyqv6/vze9eIJt6jNHHpKX32/Z3Cs1/Ruha4m3k+jblj3S0SbxV6ht2ieJXLT5WoUPFRrU68KXI8wqUadXpjxeJJV53qF2FC4lhfMUsw1IwwMhdaE8=" # PRIVATE_REPO_PASS
- secure: "feE5A8mYNpkNQKVwCj3aXrwjVrJWh/4ENpRfFlr2HOD9ORk1GORD5Yq907WZd+dTkYK54Lh1gA+qHOCIDgJHbi9ZLU+kjzEjtYKF6lQy6Wb0LI8smTOnAA6IWVVYifiXw8d66MI2MKZb2jjGeIzy8Q00SZjLhEGjLyTeCIB88Ws=" # SONA_USER
Expand All @@ -73,6 +77,12 @@ before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.rvm/
- $HOME/.sdkman

notifications:
webhooks: https://scala-ci.typesafe.com/benchq/webhooks/travis
0