mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 15:51:38 +00:00
30 lines
519 B
Handlebars
30 lines
519 B
Handlebars
# ref: https://docs.gitlab.com/ee/ci/README.html
|
|
|
|
stages:
|
|
- test
|
|
|
|
.tests:
|
|
stage: test
|
|
script:
|
|
- pip install -r requirements.txt
|
|
- pip install -r test-requirements.txt
|
|
{{#if useNose}}
|
|
- nosetests
|
|
{{/if}}
|
|
{{#unless useNose}}
|
|
- pytest --cov={{{packageName}}}
|
|
{{/unless}}
|
|
|
|
test-3.5:
|
|
extends: .tests
|
|
image: python:3.5-alpine
|
|
test-3.6:
|
|
extends: .tests
|
|
image: python:3.6-alpine
|
|
test-3.7:
|
|
extends: .tests
|
|
image: python:3.7-alpine
|
|
test-3.8:
|
|
extends: .tests
|
|
image: python:3.8-alpine
|