Skip to content

Commit

Permalink
Fixes code cov build (#840)
Browse files Browse the repository at this point in the history
* fixed code cov

* update dependencies

* updated glob for test dir

* linted

* re-linted
  • Loading branch information
dutterbutter authored Nov 10, 2020
1 parent 62ea7ef commit 293ef19
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 97 deletions.
9 changes: 2 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ jobs:
- run:
name: Install grcov
command: |
curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
cargo install grcov
- run:
name: Avoid hosts unknown for github
command: echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
Expand All @@ -253,13 +253,11 @@ jobs:
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Coverflow-checks=off"
make build
git submodule update --init
sudo make run-vectors
sudo make test-all
- run:
name: Upload to codecov
command: |
zip -0 ccov.zip `find . \( -name "forest*.gc*" \) -print`;
./grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore "/*" --ignore="target/debug/build/*" --ignore="**/tests/*" -o lcov.info;
grcov ./target/debug -s . -t lcov --llvm --branch --ignore-not-existing --ignore="tests/*" --ignore="target/debug/build/*" --ignore="**/tests/*" -o lcov.info;
bash <(curl -s https://codecov.io/bash) -f lcov.info;
publish-docs:
executor: test-executor
Expand Down Expand Up @@ -339,10 +337,7 @@ workflows:
- main
coverage:
jobs:
- prefetch-crates
- coverage:
requires:
- prefetch-crates
filters:
branches:
only:
Expand Down
Loading

0 comments on commit 293ef19

Please sign in to comment.