-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Swithced to sbt-ci-release * Removed codecove push
- Loading branch information
Showing
3 changed files
with
91 additions
and
90 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,26 +1,78 @@ | ||
dist: xenial | ||
sudo: false | ||
|
||
language: scala | ||
|
||
before_install: | ||
- git fetch --tags | ||
|
||
before_cache: | ||
- rm -fv $HOME/.ivy2/.sbt.ivy.lock | ||
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete | ||
- find $HOME/.sbt -name "*.lock" -print -delete | ||
|
||
sbt_args: -Dfile.encoding=UTF8 -Dsbt.color=always | ||
|
||
stages: | ||
- name: Format | ||
if: tag IS NOT present | ||
- name: Test | ||
if: tag IS NOT present | ||
- name: Publish Snapshot 2.12 | ||
if: branch = master AND type = push AND tag IS NOT present AND NOT fork | ||
- name: Publish Snapshot 2.13 | ||
if: branch = master AND type = push AND tag IS NOT present AND NOT fork | ||
- name: Release 2.12 | ||
if: type != pull_request AND tag IS present AND NOT fork | ||
- name: Release 2.13 | ||
if: type != pull_request AND tag IS present AND NOT fork | ||
|
||
scala: | ||
- 2.12.11 | ||
- 2.13.2 | ||
|
||
jdk: | ||
- openjdk8 | ||
- openjdk11 | ||
- openjdk13 | ||
|
||
script: | ||
- sbt ++$TRAVIS_SCALA_VERSION fullCiBuild | ||
script: sbt ++$TRAVIS_SCALA_VERSION ciBuild | ||
|
||
jobs: | ||
include: | ||
- stage: Format | ||
name: Check with Scalafmt | ||
script: sbt ++$TRAVIS_SCALA_VERSION checkFormat | ||
jdk: openjdk8 | ||
scala: 2.13.2 | ||
|
||
- stage: Publish Snapshot 2.12 | ||
name: Publish a snapshot for Scala 2.12 | ||
script: CI_SNAPSHOT_RELEASE=publish sbt ++$TRAVIS_SCALA_VERSION releaseIt | ||
jdk: openjdk8 | ||
scala: 2.12.11 | ||
|
||
- stage: Publish Snapshot 2.13 | ||
name: Publish a snapshot for Scala 2.13 | ||
script: CI_SNAPSHOT_RELEASE=publish sbt ++$TRAVIS_SCALA_VERSION releaseIt | ||
jdk: openjdk8 | ||
scala: 2.13.2 | ||
|
||
- stage: Release 2.12 | ||
name: Release for Scala 2.12 | ||
script: CI_RELEASE=publishSigned sbt ++$TRAVIS_SCALA_VERSION releaseIt | ||
jdk: openjdk8 | ||
scala: 2.12.11 | ||
|
||
- stage: Release 2.13 | ||
name: Release for Scala 2.13 | ||
script: CI_RELEASE=publishSigned sbt ++$TRAVIS_SCALA_VERSION releaseIt | ||
jdk: openjdk8 | ||
scala: 2.13.2 | ||
|
||
cache: | ||
directories: | ||
- "$HOME/.coursier/cache" | ||
- "$HOME/.ivy2/cache" | ||
- "$HOME/.sbt" | ||
|
||
before_cache: | ||
- find $HOME/.ivy2/cache -name "ivydata-*.properties" | xargs rm | ||
- find $HOME/.ivy2/cache -name "*SNAPSHOT*" | xargs rm -rf | ||
- find $HOME/.ivy2/cache -name "*.lock" | xargs rm -rf | ||
- find $HOME/.coursier/cache -name "*.lock" -type f -delete | ||
- "$HOME/.cache/coursier" | ||
- "$HOME/.ivy2/cache" | ||
- "$HOME/.sbt/boot/" | ||
- "$HOME/.sbt" | ||
- "lib_managed" | ||
- "target" | ||
- "project/target" |
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,6 +1,5 @@ | ||
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2") | ||
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.3") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0") | ||
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.2.0") | ||
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.3") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0") | ||
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.2.0") | ||
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3") |