Logo
Explore Help
Register Sign In
Study/Devops-exercises
1
0
Fork 0
You've already forked Devops-exercises
mirror of https://github.com/bregman-arie/devops-exercises.git synced 2026-02-05 08:09:13 +00:00
Code Issues Packages Projects Releases Wiki Activity
Devops-exercises/scripts/run_ci.sh

16 lines
354 B
Bash
Raw Normal View History

Add a couple of questions
2019-12-23 18:37:33 +02:00
#!/bin/bash
# These are the same steps we are running in Travis CI
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>
2023-02-06 02:50:51 +08:00
find . -name "*.md" -not -path "./tests/*" | \
xargs -I {} \
python $(dirname "$0")/../tests/syntax_lint.py {} > /dev/null
mdPassed=$?
Add a couple of questions
2019-12-23 18:37:33 +02:00
flake8 --max-line-length=100 . && echo "PEP8 Passed"
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>
2023-02-06 02:50:51 +08:00
pyPassed=$?
if [ $pyPassed -eq 0 ] && [ $mdPassed -eq 0 ];then
exit 0
else
exit 1
fi
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 159ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API