Skip to content

Commit 7add008

Browse files
committed
Fix travis coverage
1 parent fe60de9 commit 7add008

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

.travis.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,32 +43,37 @@ before_deploy:
4343
- rm -rf target/package/
4444
- cargo package --verbose
4545

46-
after_success: |
47-
travis-cargo coveralls --no-sudo --verify -- --features iron-handlers
48-
if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then
46+
after_success:
47+
- |
4948
set -e
49+
travis-cargo coverage --no-sudo
50+
./kcov/build/src/kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/juniper-* --features iron-handlers
51+
52+
- |
53+
if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then
54+
set -e
5055
51-
cargo doc --features iron-handlers
56+
cargo doc --features iron-handlers
5257
53-
mkdir -p ~/.ssh
54-
openssl aes-256-cbc -K $encrypted_7258158212d8_key -iv $encrypted_7258158212d8_iv -in _build/travis-juniper.enc -out ~/.ssh/id_rsa -d
55-
chmod 600 ~/.ssh/id_rsa
58+
mkdir -p ~/.ssh
59+
openssl aes-256-cbc -K $encrypted_7258158212d8_key -iv $encrypted_7258158212d8_iv -in _build/travis-juniper.enc -out ~/.ssh/id_rsa -d
60+
chmod 600 ~/.ssh/id_rsa
5661
57-
git clone --branch gh-pages [email protected]:mhallin/juniper deploy_docs
58-
cd deploy_docs
62+
git clone --branch gh-pages [email protected]:mhallin/juniper deploy_docs
63+
cd deploy_docs
5964
60-
git config user.name 'Juniper Documentation Builder'
61-
git config user.email '[email protected]'
65+
git config user.name 'Juniper Documentation Builder'
66+
git config user.email '[email protected]'
6267
63-
rm -rf *
64-
mv ../target/doc/* .
68+
rm -rf *
69+
mv ../target/doc/* .
6570
66-
echo '<meta http-equiv="refresh" content="0; url=juniper/index.html">' > index.html
71+
echo '<meta http-equiv="refresh" content="0; url=juniper/index.html">' > index.html
6772
68-
git add -A *
69-
git commit -qm 'Update documentation for Juniper'
70-
git push -q origin gh-pages
71-
fi
73+
git add -A *
74+
git commit -qm 'Update documentation for Juniper'
75+
git push -q origin gh-pages
76+
fi
7277
7378
deploy:
7479
provider: releases

0 commit comments

Comments
 (0)