Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Apr 17, 2023
1 parent 4df69e2 commit 8bf9bc0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,24 +295,15 @@ commands:
restore_workspace:
steps:
- attach_workspace: {at: ~/project}
# TODO migrate to a new codecov uploader, see - https://docs.codecov.com/docs/deprecated-uploader-migration-guide#python-uploader
# fetch_coverage_packages:
# steps:
# - run:
# name: Install pip3 and codecov packages
# command: |
# tools/circle-install-packages.sh python3-pip && \
# pip3 install codecov
# run_coverage_analysis:
# steps:
# - fetch_coverage_packages
# - run:
# name: Coverage
# when: on_success
# command: |
# echo "Success!"
# $EXEC ./rebar3 codecov analyze
# codecov --disable=gcov --env PRESET
run_coverage_analysis:
steps:
- run:
name: Coverage
when: on_success
command: |
echo "Success!"
$EXEC ./rebar3 codecov analyze
tools/circle-upload-codecov.sh
run_small_tests:
steps:
- restore_workspace
Expand All @@ -324,7 +315,7 @@ commands:
name: Run Small Tests
command: |
$EXEC tools/test.sh -p small_tests -s true -e true
# - run_coverage_analysis
- run_coverage_analysis
- upload_results_to_aws
- publish_github_comment
run_docker_smoke_test:
Expand Down Expand Up @@ -651,7 +642,7 @@ jobs:
- store_test_results:
when: always
path: junit_report.xml
# - run_coverage_analysis
- run_coverage_analysis
- run:
name: Build Failed - Logs
when: on_fail
Expand Down
14 changes: 14 additions & 0 deletions tools/circle-upload-codecov.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -eo pipefail

# Source: https://docs.codecov.com/docs/codecov-uploader#integrity-checking-the-uploader
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step
curl -Os https://uploader.codecov.io/latest/linux/codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM

chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -e PRESET

0 comments on commit 8bf9bc0

Please sign in to comment.