Skip to content

Commit

Permalink
Enable coverage reports from codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
NickeZ committed Jul 1, 2019
1 parent 6a29b20 commit faae31c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .ci/travis-ci
@@ -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"
4 changes: 4 additions & 0 deletions .codecov.yml
@@ -0,0 +1,4 @@
ignore:
- 'test'
- 'external'
- 'src/drivers/**/*'

0 comments on commit faae31c

Please sign in to comment.