mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
ci updates
This commit is contained in:
@@ -6,11 +6,10 @@ before_install:
|
|||||||
- sudo apt-get update -q
|
- sudo apt-get update -q
|
||||||
- sudo apt-get install -y redis-server redis-tools
|
- sudo apt-get install -y redis-server redis-tools
|
||||||
- sudo systemctl start redis-server
|
- sudo systemctl start redis-server
|
||||||
- pip3 install -r ./tests/requirements_dev.txt
|
|
||||||
install:
|
install:
|
||||||
- pip3 install -r requirements.txt
|
- pip3 install -r requirements.txt
|
||||||
before_script:
|
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
|
- pip3 install anybadge
|
||||||
- sh ./tests/check_code.sh
|
- sh ./tests/check_code.sh
|
||||||
- python3 ./tests/ci_prepare.py
|
- python3 ./tests/ci_prepare.py
|
||||||
@@ -19,4 +18,4 @@ script:
|
|||||||
- sleep 20
|
- sleep 20
|
||||||
- python3 ./tests/ci_test.py
|
- python3 ./tests/ci_test.py
|
||||||
after_success:
|
after_success:
|
||||||
- git push --quiet --set-upstream origin master
|
- git push origin master
|
||||||
|
@@ -12,12 +12,8 @@ check_format() {
|
|||||||
echo "Completed Black Formatting"
|
echo "Completed Black Formatting"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_pylint() {
|
|
||||||
echo $(python3 manage.py pylint-badge --integer-only True)
|
|
||||||
}
|
|
||||||
|
|
||||||
check_pylint() {
|
check_pylint() {
|
||||||
PYLINT_SCORE=$(run_pylint)
|
PYLINT_SCORE=$(python3 manage.py pylint-badge --integer-only True)
|
||||||
echo "Pylint score: $PYLINT_SCORE"
|
echo "Pylint score: $PYLINT_SCORE"
|
||||||
if [ "$PYLINT_SCORE" == "10.00" ]
|
if [ "$PYLINT_SCORE" == "10.00" ]
|
||||||
then
|
then
|
||||||
@@ -27,5 +23,6 @@ check_pylint() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setup_git
|
||||||
check_format
|
check_format
|
||||||
check_pylint
|
check_pylint
|
||||||
|
Reference in New Issue
Block a user