mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Drop orb, fork code to apply more descriptive error
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
orbs:
|
|
||||||
untracked_changes: niteo/check-untracked-changes@1.0.0
|
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
run-tox:
|
run-tox:
|
||||||
description: "Run tox"
|
description: "Run tox"
|
||||||
@@ -17,13 +14,20 @@ commands:
|
|||||||
- run: pip install --user tox
|
- run: pip install --user tox
|
||||||
- run: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}"
|
- run: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}"
|
||||||
run-build:
|
run-build:
|
||||||
description: "Verify assets were built"
|
description: "Ensure built assets are up toe date"
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- untracked_changes/check:
|
- run:
|
||||||
path: sphinx_rtd_theme/
|
name: Ensure built assets are up to date
|
||||||
|
command: |
|
||||||
|
if [[ `git status sphinx_rtd_theme/ --porcelain` ]]
|
||||||
|
then
|
||||||
|
echo "ERROR: assets are out of date. Make sure to run `npm run build` on your branch."
|
||||||
|
git status --porcelain
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user