Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!2Enable CI
Pipeline #
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): ...@@ -6,4 +6,4 @@ def Add(num1, num2):
return num1 + num2 return num1 + num2
def Divide_numbers(numerator, denominator): def Divide_numbers(numerator, denominator):
return numerator * denominator return numerator / denominator
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment