Skip to content

Commit

Permalink
Update .travis.yml to use build stages
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg committed Sep 10, 2018
1 parent 18c543c commit dc394c6
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
language: scala
scala: 2.12.4
scala: 2.12.6
jdk: oraclejdk8
sudo: false
dist: trusty

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


env:
global:
- TRAVIS_NODE_VERSION="8"
- TRAVIS_YARN_VERSION="1.3.2"

matrix:
jobs:
include:
- script: sbt ci-test
env: CI_PUBLISH=true
deploy:
provider: script
script: bash bin/ci-publish.sh
- script: sbt ";^^$SCRIPTED_SBT_VERSION; scripted"
env: SCRIPTED_SBT_VERSION="0.13.17"
- script: sbt ";^^$SCRIPTED_SBT_VERSION; scripted"
env: SCRIPTED_SBT_VERSION="1.0.4"
- script: ./bin/scalafmt --test
env: SCALAFMT=true
- env: TEST="sbt test"
script: sbt ci-test
- env: SCRIPTED_SBT_VERSION="0.13.17"
script: sbt ";^^$SCRIPTED_SBT_VERSION; scripted"
- env: SCRIPTED_SBT_VERSION="1.2.1"
script: sbt ";^^$SCRIPTED_SBT_VERSION; scripted"
- env: TEST=scalafmt
script: ./bin/scalafmt --test
- stage: release
script: sbt ci-release

cache:
yarn: true
Expand Down

0 comments on commit dc394c6

Please sign in to comment.