-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to ci-release
- Loading branch information
Showing
5 changed files
with
125 additions
and
238 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,35 +1,57 @@ | ||
sudo: false | ||
language: scala | ||
|
||
scala: | ||
- 2.13.1 | ||
- 2.12.10 | ||
|
||
jdk: | ||
- openjdk11 | ||
|
||
dist: xenial | ||
|
||
before_install: | ||
- git fetch --tags | ||
- export PATH=${PATH}:./vendor/bundle | ||
|
||
install: | ||
- rvm use 2.6.0 --install --fuzzy | ||
- gem update --system | ||
- gem install sass | ||
- gem install jekyll -v 3.2.1 | ||
|
||
script: | ||
- sbt ++$TRAVIS_SCALA_VERSION test | ||
- test $TRAVIS_SCALA_VERSION == "2.13.1" || sbt ++$TRAVIS_SCALA_VERSION mimaReportBinaryIssues | ||
- test $TRAVIS_SCALA_VERSION == "2.13.1" || sbt ++$TRAVIS_SCALA_VERSION docs/makeMicrosite | ||
|
||
after_success: | ||
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && test $TRAVIS_REPO_SLUG == "ChristopherDavenport/circuit" && sbt ++$TRAVIS_SCALA_VERSION publish | ||
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && test $TRAVIS_REPO_SLUG == "ChristopherDavenport/circuit" && test $TRAVIS_SCALA_VERSION == "2.12.10" && sbt docs/publishMicrosite | ||
stages: | ||
- name: test | ||
- name: release | ||
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork | ||
|
||
scala_version_213: &scala_version_213 "2.13.1" | ||
scala_version_212: &scala_version_212 "2.12.10" | ||
|
||
jobs: | ||
include: | ||
# stage="test" if no stage is specified | ||
- name: test 2.13 | ||
scala: *scala_version_213 | ||
script: sbt ++$TRAVIS_SCALA_VERSION test | ||
- name: test 2.12 | ||
scala: *scala_version_212 | ||
script: sbt ++$TRAVIS_SCALA_VERSION test | ||
- name: mima | ||
script: sbt +mimaReportBinaryIssues | ||
- name: site | ||
scala: *scala_version_212 | ||
install: | ||
- rvm use 2.6.0 --install --fuzzy | ||
- gem update --system | ||
- gem install sass | ||
- gem install jekyll -v 3.2.1 | ||
script: sbt ++$TRAVIS_SCALA_VERSION docs/makeMicrosite | ||
# run ci-release only if previous stages passed | ||
- stage: release | ||
name: release | ||
script: sbt ci-release | ||
- stage: release | ||
name: microsite | ||
scala: *scala_version_212 | ||
install: | ||
- rvm use 2.6.0 --install --fuzzy | ||
- gem update --system | ||
- gem install sass | ||
- gem install jekyll -v 3.2.1 | ||
script: sbt ++$TRAVIS_SCALA_VERSION docs/publishMicrosite | ||
|
||
cache: | ||
directories: | ||
- $HOME/.ivy2/cache | ||
- $HOME/.coursier/cache | ||
- $HOME/.sbt | ||
- $HOME/.coursier | ||
- $HOME/.cache | ||
- $HOME/.sbt |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.