Commit ca8c15ef authored by Fabrice  ALLAIN's avatar Fabrice ALLAIN
Browse files

Update .gitlab-ci.yml

parent ef27cca5
......@@ -9,8 +9,10 @@ stages:
- build
- test
- coverage
- deploy
- cleanup
build:
stage: build
when: manual
......@@ -19,6 +21,12 @@ build:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" .
- docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME"
pytest:
image: registry-gitlab.pasteur.fr/bis-aria/ariaec:master
stage: test
script:
- pytest -sx --doctest-modules --doctest-ignore-import-errors
coverage:
stage: coverage
image: registry-gitlab.pasteur.fr/bis-aria/ariaec:master
......@@ -31,6 +39,7 @@ coverage:
pages:
image: registry-gitlab.pasteur.fr/bis-aria/ariaec:master
stage: deploy
dependencies:
- coverage
script:
......@@ -45,36 +54,12 @@ pages:
only:
- master
pytest:
image: registry-gitlab.pasteur.fr/bis-aria/ariaec:master
stage: test
script:
- pytest -sx --doctest-modules --doctest-ignore-import-errors --cov=aria
# unittest:
# image: registry-gitlab.pasteur.fr/bis-aria/ariaec:master
# stage: test
# script:
# - python -m unittest discover -f -s test/ -t ./
# only:
# - master
cleanup_pypirc:
stage: cleanup
when: always # this is important; run even if preceding stages failed.
script:
- rm -vf ~/.pypirc # we don't want to leave these around, but GitLab may clean up anyway.
codequality:
stage: test
script:
- docker info
- docker pull codeclimate/codeclimate
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate:0.69.0 init
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate:0.69.0 analyze -f json > codeclimate.json || true
artifacts:
paths: [codeclimate.json]
# deploy_pypi:
# stage: deploy
# script: # Configure the PyPI credentials, then push the package, and cleanup the creds.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment