File tree Expand file tree Collapse file tree 2 files changed +58
-1
lines changed
Expand file tree Collapse file tree 2 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 1+ language : rust
2+ # Sudo only needed to workaround travis-ci/travis-ci#9061
3+ sudo : required
4+
5+ cache :
6+ - apt : true
7+ - cargo
8+
9+ # Dependencies - currently all for code coverage (kcov).
10+ addons :
11+ apt :
12+ packages :
13+ - libcurl4-openssl-dev
14+ - libelf-dev
15+ - libdw-dev
16+ - cmake
17+ - gcc
18+ - binutils-dev
19+ - libiberty-dev
20+
21+ # Run builds with all supported rust versions.
22+ matrix :
23+ include :
24+ - rust : stable
25+ # - rust: beta
26+ # - rust: nightly
27+
28+ # Build then test.
29+ script :
30+ - cargo build
31+ - cargo test
32+
33+ after_success :
34+ # If build and test are good, check the coverage.
35+ - |
36+ if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
37+ wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
38+ tar xzf master.tar.gz &&
39+ cd kcov-master &&
40+ mkdir build &&
41+ cd build &&
42+ cmake .. &&
43+ make &&
44+ make install DESTDIR=../../kcov-build &&
45+ cd ../.. &&
46+ rm -rf kcov-master &&
47+ for file in target/debug/jiff-*[^\.d]; do
48+ mkdir -p "target/cov/$(basename $file)";
49+ ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file";
50+ done &&
51+ bash <(curl -s https://codecov.io/bash) &&
52+ echo "Uploaded code coverage"
53+ fi
Original file line number Diff line number Diff line change 11# jiff
2- A terminal diff tool supporting sub-line diffs and side-by-side output display
2+
3+ [ ![ Build Status] ( https://travis-ci.org/jonsim/jiff.svg?branch=master )] ( https://travis-ci.org/jonsim/jiff )
4+ [ ![ codecov] ( https://codecov.io/gh/jonsim/jiff/branch/master/graph/badge.svg )] ( https://codecov.io/gh/jonsim/jiff )
5+
6+ A terminal diff tool supporting sub-line diffs and side-by-side output display
You can’t perform that action at this time.
0 commit comments