You've already forked devops-exercises
mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2025-07-15 23:54:32 +02:00
scripts/run_ci.sh to cover directories in the exercises and topics dir (#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 <zhangzhen@nao.cas.cn> Co-authored-by: Arie Bregman <bregman.arie@gmail.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user