Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding sbt release early * moving coverage back to after_success * release only if it has a tag
- Loading branch information
Showing
5 changed files
with
38 additions
and
22 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 |
---|---|---|
|
@@ -8,4 +8,5 @@ project/plugins/project/ | |
.history | ||
.cache | ||
.lib/ | ||
local.* | ||
.DS_Store |
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,31 +1,25 @@ | ||
# Use container-based infrastructure | ||
sudo: false | ||
|
||
before_cache: | ||
# Cleanup the cached directories to avoid unnecessary cache updates | ||
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete | ||
- find $HOME/.sbt -name "*.lock" -print -delete | ||
|
||
# These directories are cached to S3 at the end of the build | ||
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete | ||
- find $HOME/.sbt -name "*.lock" -print -delete | ||
cache: | ||
directories: | ||
- $HOME/.ivy2/cache | ||
- $HOME/.sbt | ||
|
||
- "$HOME/.ivy2/cache" | ||
- "$HOME/.sbt" | ||
language: scala | ||
|
||
jdk: oraclejdk8 | ||
|
||
scala: | ||
- 2.12.7 | ||
|
||
- 2.12.7 | ||
script: | ||
- sbt ++$TRAVIS_SCALA_VERSION clean coverage test scalafmtCheck scalafmtSbtCheck | ||
|
||
- sbt ++$TRAVIS_SCALA_VERSION clean coverage test scalafmtCheck scalafmtSbtCheck | ||
after_success: | ||
- sbt ++$TRAVIS_SCALA_VERSION coverageReport coveralls | ||
|
||
# These branches only will run build on commit | ||
- sbt ++$TRAVIS_SCALA_VERSION coverageReport coveralls | ||
- if [ $TRAVIS_PULL_REQUEST = 'false' ]; then sbt ++$TRAVIS_SCALA_VERSION releaseEarly; | ||
fi | ||
before_install: | ||
- if [ -n "${TRAVIS_TAG}" && $TRAVIS_PULL_REQUEST = 'false' ]; then openssl aes-256-cbc -K $encrypted_dcc5d8de5fcf_key | ||
-iv $encrypted_dcc5d8de5fcf_iv -in travis/secrets.tar.enc -out travis/local.secrets.tar | ||
-d; tar xv -C travis -f travis/secrets.tar; fi | ||
branches: | ||
only: | ||
- master |
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,5 +1,9 @@ | ||
// scala format | ||
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1") | ||
|
||
// coverage | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1") | ||
|
||
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.2.5") | ||
|
||
// release | ||
addSbtPlugin("ch.epfl.scala" % "sbt-release-early" % "2.1.1") |
Binary file not shown.