Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit 395220f

Browse files
committed
Merge pull request #321 from farcaller/travis-ci
Added coveralls to travis build
2 parents f6d5e44 + 249a982 commit 395220f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@ rust: nightly
33
before_install:
44
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
55
- sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/terry_guo-gcc-arm-embedded-precise.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
6-
install:
7-
- sudo apt-get install gcc-arm-none-eabi
6+
- sudo apt-get install gcc-arm-none-eabi libcurl4-openssl-dev libelf-dev libdw-dev
7+
- wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && tar xzf master.tar.gz
8+
- (mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && make install DESTDIR=../tmp)
89
script:
910
- ./configure --host=arm-none-eabi
1011
- cargo build --target=$TARGET --verbose --features mcu_$PLATFORM
1112
- ./support/build-examples.sh
1213
after_script:
1314
- cargo test --lib --verbose
1415
- (cd ./ioreg; cargo build --verbose; cargo test --verbose)
16+
- (kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo,ioreg/tests target/kcov ioreg/target/debug/test-*)
1517
- (cd ./platformtree; cargo build --verbose; cargo test --verbose)
1618
- (cd ./macro_platformtree; cargo build --verbose; cargo test --verbose)
1719
- (cd ./macro_zinc; cargo test --verbose)
20+
- (kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/zinc-*)
21+
1822
env:
1923
matrix:
2024
- PLATFORM=lpc17xx

0 commit comments

Comments
 (0)