-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
35 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,37 @@ | ||
language: scala | ||
matrix: | ||
|
||
stages: | ||
- name: test | ||
- name: release | ||
if: (tag IS present) AND NOT fork | ||
|
||
jdk: openjdk8 | ||
|
||
jobs: | ||
include: | ||
- env: SBT_VERSION="1.3.9" | ||
jdk: openjdk8 | ||
- env: SBT_VERSION="1.3.9" | ||
jdk: openjdk11 | ||
# stage="test" if no stage is specified | ||
- name: jdk8 | ||
jdk: openjdk8 | ||
- name: jdk11 | ||
jdk: openjdk11 | ||
# run ci-release only if previous stages passed | ||
- stage: release | ||
script: sbt ci-release | ||
|
||
script: sbt "^^ $SBT_VERSION" clean test scripted | ||
before_install: | ||
- git fetch --tags | ||
|
||
cache: | ||
directories: | ||
- $HOME/.ivy2/cache | ||
- $HOME/.cache/coursier | ||
- $HOME/.sbt | ||
script: sbt clean test scripted | ||
|
||
before_cache: | ||
# Cleanup the cached directories to avoid unnecessary cache updates | ||
- rm -fv $HOME/.ivy2/.sbt.ivy.lock | ||
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete | ||
- find $HOME/.cache/coursier -name -print -delete | ||
- find $HOME/.sbt -name "*.lock" -print -delete | ||
|
||
cache: | ||
directories: | ||
- $HOME/.ivy2/cache | ||
- $HOME/.cache/coursier | ||
- $HOME/.sbt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13") | ||
addSbtPlugin("org.foundweekends" %% "sbt-bintray" % "0.5.6") | ||
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3") |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.