Commit 8d991315 authored by Fabrice  ALLAIN's avatar Fabrice ALLAIN
Browse files

Merge branch '33-job-failed-30202' into 'master'

Resolve "Job Failed #30202"

Closes #33

See merge request bis-aria/ariaec!11
parents 8eba464f 38d57514
......@@ -17,11 +17,16 @@ build:
stage: build
script:
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" registry-gitlab.pasteur.fr
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" .
- docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME"
- docker build --pull -t "$CI_REGISTRY_IMAGE:latest" .
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
changes:
- Dockerfile
- package.json
- setup.py
pytest:
image: registry-gitlab.pasteur.fr/bis-aria/ariaec:$CI_COMMIT_REF_NAME
image: $CI_REGISTRY_IMAGE:latest
stage: test
script:
- cd ${CI_PROJECT_DIR}
......@@ -30,16 +35,21 @@ pytest:
coverage:
stage: coverage
image: registry-gitlab.pasteur.fr/bis-aria/ariaec:$CI_BUILD_REF_NAME
image: $CI_REGISTRY_IMAGE:latest
script:
- pytest --cov=aria --cov-report html --cov-report term
coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
artifacts:
paths:
- htmlcov/
only:
refs:
- master
changes:
- src/**/*
pages:
image: registry-gitlab.pasteur.fr/bis-aria/ariaec:$CI_BUILD_REF_NAME
image: $CI_REGISTRY_IMAGE:latest
stage: deploy
dependencies:
- coverage
......@@ -52,6 +62,11 @@ pages:
artifacts:
paths:
- public
only:
refs:
- master
changes:
- docs/**/*
cleanup_pypirc:
stage: cleanup
......@@ -66,8 +81,10 @@ deliver:
only:
- master
script:
- semantic-delivery-gitlab --token ${SEMANTIC_DELIVER_TOKEN}
- semantic-delivery-gitlab --token $SEMANTIC_TOKEN
stage: deliver
# deploy_pypi:
# stage: deploy
# script: # Configure the PyPI credentials, then push the package, and cleanup the creds.
......
Markdown is supported
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