Skip to content
Snippets Groups Projects
Commit 819abe25 authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

setup generating and uploading coverage reports

parent 18d30549
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,10 @@ build documentation:
run tests:
stage: test
script:
- py.test --cov=kwant --flakes kwant
- py.test --cov=kwant --cov-report term --cov-report html --flakes kwant
artifacts:
paths:
- htmlcov
check for broken links in doc:
stage: test
......@@ -65,6 +68,22 @@ check for broken links in doc:
- make -C doc linkcheck
allow_failure: true
upload coverage:
stage: deploy
only:
- branches@kwant/kwant
environment:
name: coverage/$CI_BUILD_REF_NAME
url: https://kwant-project.org/coverage/$CI_BUILD_REF_SLUG
before_script:
- mkdir -p ~/.ssh && ssh-keyscan kwant-project.org >> ~/.ssh/known_hosts
- echo $MASTER_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
script:
- rsync -rlv --delete htmlcov/* kwant@kwant-project.org:coverage/$CI_BUILD_REF_SLUG
after_script:
- rm -rf ~/.ssh
upload documentation to the test server:
stage: deploy
only:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment