1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

ci updates

This commit is contained in:
checktheroads
2019-06-17 01:14:29 -07:00
parent b73e31ae4b
commit 658e39456d
2 changed files with 4 additions and 8 deletions

View File

@@ -6,11 +6,10 @@ before_install:
- sudo apt-get update -q
- sudo apt-get install -y redis-server redis-tools
- sudo systemctl start redis-server
- pip3 install -r ./tests/requirements_dev.txt
install:
- pip3 install -r requirements.txt
before_script:
# - git remote add origin git@github.com/checktheroads/hyperglass.git > /dev/null 2>&1
- pip3 install -r ./tests/requirements_dev.txt
- pip3 install anybadge
- sh ./tests/check_code.sh
- python3 ./tests/ci_prepare.py
@@ -19,4 +18,4 @@ script:
- sleep 20
- python3 ./tests/ci_test.py
after_success:
- git push --quiet --set-upstream origin master
- git push origin master

View File

@@ -12,12 +12,8 @@ check_format() {
echo "Completed Black Formatting"
}
run_pylint() {
echo $(python3 manage.py pylint-badge --integer-only True)
}
check_pylint() {
PYLINT_SCORE=$(run_pylint)
PYLINT_SCORE=$(python3 manage.py pylint-badge --integer-only True)
echo "Pylint score: $PYLINT_SCORE"
if [ "$PYLINT_SCORE" == "10.00" ]
then
@@ -27,5 +23,6 @@ check_pylint() {
fi
}
setup_git
check_format
check_pylint