2017-03-30 09:05:31 +00:00
|
|
|
before_script:
|
|
|
|
- "echo $CI_BUILD_ID"
|
|
|
|
- "echo $CI_BUILD_REF_NAME"
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
# - release
|
|
|
|
|
|
|
|
tests:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- "python scripts/pylint_wrapper.py -s source -s tests"
|
2017-03-30 12:09:49 +00:00
|
|
|
- "nosetests --with-coverage --cover-package=source --cover-xml"
|
2017-03-30 09:05:31 +00:00
|
|
|
- "nosetests --with-xunit tests/unittests/"
|
|
|
|
- "sonar-runner"
|
|
|
|
|
|
|
|
#releases:
|
|
|
|
# stage: release
|
|
|
|
# script:
|
|
|
|
# - "python scripts/create_release_script.py"
|
|
|
|
# - "cd source"
|
|
|
|
# - "python release.py sdist"
|
|
|
|
# - "cd .."
|
|
|
|
# - "scripts/deploy_release.sh"
|
|
|
|
# only:
|
|
|
|
# - /^[0-9]{1,}.[0-9]{1,}.[0-9]{1,}$/
|
|
|
|
# except:
|
|
|
|
# - branches
|
|
|
|
|