From 53ec6ab45e7ea2ba5c5d06055d98a44a23adf17a Mon Sep 17 00:00:00 2001 From: rht Date: Wed, 5 Dec 2018 16:00:55 +0000 Subject: [PATCH] circleci: Use alias for upload coverage report. --- .circleci/config.yml | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 99c07e433b..9c7b7c1189 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,6 +34,14 @@ aliases: . /srv/zulip-py3-venv/bin/activate mispipe ./tools/travis/frontend ts + - &upload_coverage_report + run: + name: upload coverage report + command: | + . /srv/zulip-py3-venv/bin/activate + pip install codecov && codecov \ + || echo "Error in uploading coverage reports to codecov.io." + jobs: "trusty-python-3.4": docker: @@ -91,12 +99,7 @@ jobs: - *run_frontend_tests - - run: - name: upload coverage report - command: | - . /srv/zulip-py3-venv/bin/activate - pip install codecov && codecov \ - || echo "Error in uploading coverage reports to codecov.io." + - *upload_coverage_report # - store_artifacts: # TODO # path: var/casper/ @@ -135,12 +138,7 @@ jobs: - *run_backend_tests - - run: - name: upload coverage report - command: | - . /srv/zulip-py3-venv/bin/activate - pip install codecov && codecov \ - || echo "Error in uploading coverage reports to codecov.io." + - *upload_coverage_report "bionic-python-3.6": docker: @@ -181,13 +179,7 @@ jobs: - *run_backend_tests - - run: - name: upload coverage report - command: | - . /srv/zulip-py3-venv/bin/activate - pip install codecov && codecov \ - || echo "Error in uploading coverage reports to codecov.io." - + - *upload_coverage_report workflows: version: 2