language: java os: linux jdk: openjdk8 git: depth: false # https://stackoverflow.com/a/51727114/3714539 before_install: - export TRAVIS_SCALA_VERSION=2.12.8 script: scripts/travis.sh stages: - name: test - name: release if: (branch = master AND type = push) OR (tag IS present) jobs: include: - env: SBT_COURSIER=1 TEST_GROUP=1 - env: SBT_COURSIER=1 TEST_GROUP=2 - env: SBT_PGP_COURSIER=1 - env: LM_COURSIER=1 TEST_GROUP=1 - env: LM_COURSIER=1 TEST_GROUP=2 - stage: release script: ./sbt ci-release branches: only: - master - /^v\d+\.\d+.*$/ # tagged versions cache: directories: - $HOME/.ivy2/cache - $HOME/.sbt - $HOME/.cache