From 19c2defe226533acb8b0b849baf2ff06d16465c3 Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Thu, 7 Feb 2019 18:12:34 -0500 Subject: [PATCH 1/2] Add travis configuration to test publishing the library --- .travis.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7cb5f52 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,45 @@ +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 + - 2.13.0-M5 + +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 From c209e3f0b81bf7d5c521475a3b1dd8e33695d254 Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Thu, 7 Feb 2019 18:38:55 -0500 Subject: [PATCH 2/2] Remove scala 2.13.0-M5 --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7cb5f52..193ba6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,6 @@ matrix: scala: - 2.12.8 - 2.11.12 - - 2.13.0-M5 script: # Check that we can actually build and package the library