Revert codecov

This commit is contained in:
howardwu 2021-03-15 22:53:26 -07:00
parent 5325a38643
commit 7259dbabb3
2 changed files with 64 additions and 64 deletions

View File

@ -75,21 +75,21 @@ jobs:
- clear_environment:
cache_key: leo-nightly-cache
codecov:
machine:
image: ubuntu-1604:202004-01
docker_layer_caching: true
resource_class: xlarge
steps:
- attach_workspace:
at: /home/circleci/project/
- run:
name: Run kcov
command: >
cd ~/project/project/ &&
docker run --security-opt seccomp=unconfined -v ~/project/project/:/home/circleci/project/
howardwu/snarkos-codecov:2021-01-31 bash /home/circleci/project/.resources/kcov.sh
- run: cd ./project/ && bash <(curl -s https://codecov.io/bash)
# codecov:
# machine:
# image: ubuntu-1604:202004-01
# docker_layer_caching: true
# resource_class: xlarge
# steps:
# - attach_workspace:
# at: /home/circleci/project/
# - run:
# name: Run kcov
# command: >
# cd ~/project/project/ &&
# docker run --security-opt seccomp=unconfined -v ~/project/project/:/home/circleci/project/
# howardwu/snarkos-codecov:2021-01-31 bash /home/circleci/project/.resources/kcov.sh
# - run: cd ./project/ && bash <(curl -s https://codecov.io/bash)
leo-executable:
docker:
@ -219,9 +219,9 @@ workflows:
jobs:
- rust-stable
- rust-nightly
- codecov:
requires:
- rust-stable
# - codecov:
# requires:
# - rust-stable
- leo-executable
- leo-new:
requires:

View File

@ -156,49 +156,49 @@ jobs:
cd package
cargo test-all-features
# codecov:
# name: Code Coverage
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v1
#
# - name: Install Rust
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: nightly
# override: true
# components: rustfmt
#
# - name: Test
# uses: actions-rs/cargo@v1
# with:
# command: test
# args: --all --features ci_skip
# env:
# CARGO_NET_GIT_FETCH_WITH_CLI: true
# CARGO_INCREMENTAL: "0"
#
# - name: Install dependencies for code coverage
# run: |
# sudo apt-get update
# sudo apt-get -y install binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev
#
# - name: Generate coverage report
# run: |
# wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz
# tar xzf master.tar.gz
# cd kcov-master
# mkdir build && cd build
# cmake .. && make
# make install DESTDIR=../../kcov-build
# cd ../..
# rm -rf kcov-master
# for file in target/debug/deps/*-*; do if [[ "$file" != *\.* ]]; then mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --exclude-region='@kcov_skip(start):@kcov_skip(end)' --verify "target/cov/$(basename $file)" "$file"; fi done
#
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# token: ${{ secrets.CODECOV_TOKEN }}
codecov:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --features ci_skip
env:
CARGO_NET_GIT_FETCH_WITH_CLI: true
CARGO_INCREMENTAL: "0"
- name: Install dependencies for code coverage
run: |
sudo apt-get update
sudo apt-get -y install binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev
- name: Generate coverage report
run: |
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz
tar xzf master.tar.gz
cd kcov-master
mkdir build && cd build
cmake .. && make
make install DESTDIR=../../kcov-build
cd ../..
rm -rf kcov-master
for file in target/debug/deps/*-*; do if [[ "$file" != *\.* ]]; then mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --exclude-region='@kcov_skip(start):@kcov_skip(end)' --verify "target/cov/$(basename $file)" "$file"; fi done
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}