diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..6eaeeb7ca235456f8a6a93dca7732680427b6cf2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +stages: + - lint + - test + - deploy + +pylint: + stage: lint + image: davidhrbac/docker-pycheck:latest + allow_failure: true + script: + - pylint *.py + +shellcheck: + stage: lint + image: davidhrbac/docker-shellcheck:latest + allow_failure: true + script: + - shellcheck *.sh + +nosetest: + stage: test + image: davidhrbac/docker-pycheck:latest + before_script: + - pip install nose + script: + - nosetests nosetest.py + +deploy to test: + stage: deploy + image: davidhrbac/docker-pycheck:latest + script: + - cat *.py | curl -F "sprunge=<-" http://sprunge.us diff --git a/pymath.py b/pymath.py index 39baaa78dae196557cd34e2791bbd2851623da69..d21b972059ab2c88a4af8d8c40349a3cfde2bde3 100644 --- a/pymath.py +++ b/pymath.py @@ -6,4 +6,4 @@ def Add(num1, num2): return num1 + num2 def Divide_numbers(numerator, denominator): - return numerator * denominator + return numerator / denominator