Skip to content
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

Add travis configuration to test publishing the library #27

Merged
merged 2 commits into from
Feb 12, 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
44 changes: 44 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
language: scala

before_install:
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh

install:
- $JABBA_HOME/bin/jabba install $TRAVIS_JDK
- unset _JAVA_OPTIONS
- export JAVA_HOME="$JABBA_HOME/jdk/$TRAVIS_JDK" && export PATH="$JAVA_HOME/bin:$PATH" && java -Xmx32m -version

env:
global:
- JABBA_HOME=$HOME/.jabba
matrix:
- TRAVIS_JDK=adopt@1.8.192-12
- TRAVIS_JDK=adopt@1.11.0-1

matrix:
fast_finish: true
allow_failures:
# Java 11 is still not fully supported. It is good that we are already
# testing play-ws using it to better discover possible problems but we
# can allow failures here too.
- env: TRAVIS_JDK=adopt@1.11.0-1

scala:
- 2.12.8
- 2.11.12

script:
# Check that we can actually build and package the library
- sbt ++$TRAVIS_SCALA_VERSION publishLocal

cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt/boot/"
- "$HOME/.jabba/jdk"

before_cache:
- rm -rf $HOME/.ivy2/cache/com.typesafe.play/*
- rm -rf $HOME/.ivy2/cache/scala_*/sbt_*/com.typesafe.play/*
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete