mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-28 12:30:54 +00:00
* python: Respect useNose option in generated CI templates Travis and Gitlab CI now use nosetests or pytests depending on the "useNose" option that is passed. * python: Update CI samples They now respect the "useNose" option
34 lines
648 B
YAML
34 lines
648 B
YAML
# ref: https://docs.gitlab.com/ee/ci/README.html
|
|
|
|
stages:
|
|
- test
|
|
|
|
.nosetest:
|
|
stage: test
|
|
script:
|
|
- pip install -r requirements.txt
|
|
- pip install -r test-requirements.txt
|
|
- pytest --cov=petstore_api
|
|
|
|
nosetest-2.7:
|
|
extends: .nosetest
|
|
image: python:2.7-alpine
|
|
nosetest-3.3:
|
|
extends: .nosetest
|
|
image: python:3.3-alpine
|
|
nosetest-3.4:
|
|
extends: .nosetest
|
|
image: python:3.4-alpine
|
|
nosetest-3.5:
|
|
extends: .nosetest
|
|
image: python:3.5-alpine
|
|
nosetest-3.6:
|
|
extends: .nosetest
|
|
image: python:3.6-alpine
|
|
nosetest-3.7:
|
|
extends: .nosetest
|
|
image: python:3.7-alpine
|
|
nosetest-3.8:
|
|
extends: .nosetest
|
|
image: python:3.8-alpine
|