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