mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-13 19:37:30 +01:00
Docs: conditional Travis based on commit message
This commit is contained in:
parent
87a655e7f8
commit
38e5125bde
3 changed files with 15 additions and 0 deletions
|
@ -48,6 +48,7 @@ before_script:
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- name: test
|
- name: test
|
||||||
|
if: commit_message !~ /^Docs:/
|
||||||
- name: release
|
- name: release
|
||||||
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
|
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
|
||||||
|
|
||||||
|
@ -60,6 +61,8 @@ jobs:
|
||||||
include:
|
include:
|
||||||
# run ci-release only if previous stages passed
|
# run ci-release only if previous stages passed
|
||||||
- stage: release
|
- stage: release
|
||||||
|
name: Publish library
|
||||||
script: sbt ci-release
|
script: sbt ci-release
|
||||||
# run website push only if previous stages passed
|
# run website push only if previous stages passed
|
||||||
- script: sbt docs/docusaurusPublishGhpages
|
- script: sbt docs/docusaurusPublishGhpages
|
||||||
|
name: Publish website
|
||||||
|
|
|
@ -83,3 +83,9 @@ files, build the site and push them to GH pages.
|
||||||
|
|
||||||
Before running those commands, you might have to change a few constants in
|
Before running those commands, you might have to change a few constants in
|
||||||
`siteConfig.js`. These are specifed in the comments of that file.
|
`siteConfig.js`. These are specifed in the comments of that file.
|
||||||
|
|
||||||
|
### CI
|
||||||
|
|
||||||
|
Bitcoin-S uses Travis to run tests and deploy library and website builds. Generally
|
||||||
|
speaking CI has to pass for a PR to get merged. If you make documentation/website only
|
||||||
|
changes, you can start your PR title with `Docs:`. This skips running tests on CI.
|
||||||
|
|
|
@ -159,3 +159,9 @@ The command `sbt testQuick` can also be handy. It runs tests that either:
|
||||||
|
|
||||||
For more information on `testQuick`, see the offical
|
For more information on `testQuick`, see the offical
|
||||||
[sbt docs](https://www.scala-sbt.org/1.x/docs/Testing.html#testQuick).
|
[sbt docs](https://www.scala-sbt.org/1.x/docs/Testing.html#testQuick).
|
||||||
|
|
||||||
|
### CI
|
||||||
|
|
||||||
|
Bitcoin-S uses Travis to run tests and deploy library and website builds. Generally
|
||||||
|
speaking CI has to pass for a PR to get merged. If you make documentation/website only
|
||||||
|
changes, you can start your PR title with `Docs:`. This skips running tests on CI.
|
||||||
|
|
Loading…
Add table
Reference in a new issue