-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable coverage reports from codecov
- Loading branch information
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
#!/bin/bash -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
CONTAINER=shiftcrypto/firmware_v2:2 | ||
|
||
# Fetch origin/master so that we can diff when checking coding style. | ||
git remote set-branches --add origin master | ||
git fetch | ||
|
||
docker run -v ${TRAVIS_BUILD_DIR}:/bitbox02-firmware/ \ | ||
-i shiftcrypto/firmware_v2:2 \ | ||
bash -c "make -C /bitbox02-firmware ci" | ||
docker run \ | ||
--cap-add SYS_PTRACE \ | ||
--volume ${TRAVIS_BUILD_DIR}:/bitbox02-firmware/ \ | ||
--workdir /bitbox02-firmware \ | ||
${CONTAINER} \ | ||
bash -c "./.ci/ci" | ||
|
||
# Codecov | ||
# Need to run inside container to find gcov-8 | ||
# Need to detect environment variables outside of docker | ||
ci_env=$(bash <(curl -s https://codecov.io/env)) | ||
docker run ${ci_env} \ | ||
--volume ${TRAVIS_BUILD_DIR}:/bitbox02-firmware/ \ | ||
--workdir /bitbox02-firmware \ | ||
${CONTAINER} \ | ||
bash -c "bash <(curl -s https://codecov.io/bash) -x gcov-8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ignore: | ||
- 'test' | ||
- 'external' | ||
- 'src/drivers/**/*' |