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.
Update/run ci script (bregman-arie#352)
* New questions and spell check (bregman-arie#181) Added new questions related with KVM, Libvirt and DNF * Improve run_ci script readability * Change shell in workflow
- Loading branch information
1 parent
5599587
commit 9e9a6a3
Showing
2 changed files
with
16 additions
and
16 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,15 +1,15 @@ | ||
#!/bin/bash | ||
# These are the same steps we are running in Travis CI | ||
|
||
|
||
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 | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
PROJECT_DIR="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/.." | ||
|
||
MD_FILES=$(find ${PROJECT_DIR} -name "*.md" -not -path "${PROJECT_DIR}/tests/*") | ||
|
||
for file in ${MD_FILES[@]}; do | ||
python ${PROJECT_DIR}/tests/syntax_lint.py ${file} > /dev/null | ||
done | ||
|
||
echo "- Syntax lint tests on MD files passed sucessfully" | ||
|
||
flake8 --max-line-length=100 . && echo "- PEP8 Passed" |