Commit dec1fc5e authored by Marek Pecha's avatar Marek Pecha
Browse files

Merge branch 'ci' into 'master'

Enable CI

Closes #2

See merge request !2
parents 485119ec e53eb091
Pipeline #3217 passed with stages
in 36 seconds
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
......@@ -6,4 +6,4 @@ def Add(num1, num2):
return num1 + num2
def Divide_numbers(numerator, denominator):
return numerator * denominator
return numerator / denominator
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment