Browse Source

test codecov

embedded-hal-1.0
Chris 7 years ago
parent
commit
74dc5171bf
  1. 26
      .travis.yml

26
.travis.yml

@ -89,6 +89,17 @@ matrix:
#- env: TEST_DIR=examples/embedded_linux #- env: TEST_DIR=examples/embedded_linux
#- env: TEST_DIR=examples/f3_stm32f30x #- env: TEST_DIR=examples/f3_stm32f30x
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
before_install: before_install:
- set -e - set -e
- rustup self update - rustup self update
@ -114,7 +125,20 @@ script:
# - cd examples/stm32f3discovery && cargo check --target thumbv7m-none-eabi && cd ../../ # - cd examples/stm32f3discovery && cargo check --target thumbv7m-none-eabi && cd ../../
#- cd ../f3_stm32f30x && cargo build #- cd ../f3_stm32f30x && cargo build
after_success: after_success: |
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/examplerust-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage"
#- cargo doc-upload #- cargo doc-upload

Loading…
Cancel
Save