diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..e096fc9d07232ad4944ac8d727166df0bcc9c6a7 --- /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 + allow_failure: true + script: + - shellcheck *.sh + + +nosetests: + stage: test + image: davidhrbac/docker-pycheck + before_script: + - pip install nose + script: + - nosetests nosetest.py + +deploy bitch: + stage: deploy + script: + - cat * | curl -F 'sprunge=<-' http://sprunge.us diff --git a/README.md b/README.md index bc483c4fa1ac1b5829ede9f2ccc22cca4678956a..2fffe094ce4623ddd182ef66225e5ffcc2d4c40f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # Project readme bitch +[![pipeline status](https://code.it4i.cz/prd001/ci-test/badges/master/pipeline.svg)](https://code.it4i.cz/prd001/ci-test/commits/master) 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