forked from bregman-arie/devops-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/run_ci.sh to cover directories in the exercises and topics dir (
bregman-arie#315) * Smoother practice experience * update ci to check all md files * fix some syntax * fix README-zh_CN.md * update syntax_lint accorging to PEP8 * Temporarily delete this question 'Explain the sidecar container pattern' to pass the workflow --------- Co-authored-by: zhangzhen <[email protected]> Co-authored-by: Arie Bregman <[email protected]>
- Loading branch information
1 parent
50c9714
commit 01e1ddd
Showing
5 changed files
with
61 additions
and
45 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
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,15 @@ | ||
#!/bin/bash | ||
# These are the same steps we are running in Travis CI | ||
|
||
python $(dirname "$0")/../tests/syntax_lint.py | ||
|
||
find . -name "*.md" -not -path "./tests/*" | \ | ||
xargs -I {} \ | ||
python $(dirname "$0")/../tests/syntax_lint.py {} > /dev/null | ||
mdPassed=$? | ||
flake8 --max-line-length=100 . && echo "PEP8 Passed" | ||
pyPassed=$? | ||
if [ $pyPassed -eq 0 ] && [ $mdPassed -eq 0 ];then | ||
exit 0 | ||
else | ||
exit 1 | ||
fi |
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
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