2019-05-14 07:34:59 +01:00
|
|
|
language: scala
|
2019-06-30 12:23:04 +01:00
|
|
|
scala:
|
2019-09-01 21:30:16 +01:00
|
|
|
- 2.13.0
|
2019-06-30 12:23:04 +01:00
|
|
|
jdk:
|
|
|
|
- openjdk8
|
|
|
|
- openjdk11
|
2019-05-16 19:28:50 +01:00
|
|
|
env:
|
|
|
|
- AWS_REGION=eu-west-1
|
2019-06-30 12:23:04 +01:00
|
|
|
before_install:
|
|
|
|
- git fetch --tags
|
|
|
|
stages:
|
|
|
|
- name: test
|
|
|
|
- name: release
|
|
|
|
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: test
|
|
|
|
script: sbt ++$TRAVIS_SCALA_VERSION test
|
|
|
|
- stage: release
|
2019-06-30 14:38:50 +01:00
|
|
|
script: sbt ++$TRAVIS_SCALA_VERSION ci-release
|
2019-06-30 12:23:04 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.sbt/1.0/dependency
|
|
|
|
- $HOME/.sbt/boot/scala*
|
|
|
|
- $HOME/.sbt/launchers
|
|
|
|
- $HOME/.ivy2/cache
|
|
|
|
- $HOME/.coursier
|
|
|
|
before_cache:
|
|
|
|
- du -h -d 1 $HOME/.ivy2/cache
|
|
|
|
- du -h -d 2 $HOME/.sbt/
|
|
|
|
- find $HOME/.sbt -name "*.lock" -type f -delete
|
|
|
|
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
|
|
|
|
- rm -rf $HOME/.ivy2/local
|