Skip to content

Commit

Permalink
Use sbt-ci-release (#21)
Browse files Browse the repository at this point in the history
* updated travis to perform stages + release on tag

* update travis

* update travis (take 2)

* update travis (take 3)

* update travis (take 4)
  • Loading branch information
sirocchj authored Nov 21, 2019
1 parent 4cf6a9a commit 5277582
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,35 @@ language: scala
scala:
- 2.12.10

sbt_args: -Dfile.encoding=UTF8 -Dsbt.color=always -Dsbt.supershell=false

jdk:
- openjdk8
- openjdk11

script:
- sbt -Dfile.encoding=UTF8 -Dsbt.color=always -Dsbt.supershell=false ++$TRAVIS_SCALA_VERSION fullBuild
before_install:
- git fetch --tags

stages:
- name: format
- name: test
- name: release
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork

jobs:
include:
- stage: format
script: sbt fmtCheck
- stage: test
env: STEP="scripted"
jdk: openjdk8
script: sbt ++$TRAVIS_SCALA_VERSION scripted
- env: STEP="scripted"
jdk: openjdk11
script: sbt ++$TRAVIS_SCALA_VERSION scripted
- stage: release
jdk: openjdk8
script: sbt ci-release

cache:
directories:
Expand Down

0 comments on commit 5277582

Please sign in to comment.