Skip to content

Commit

Permalink
chore(generic): only publish CI coverage on success
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored and malept committed Jan 4, 2017
1 parent a506dd3 commit 7fbbef7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -17,6 +17,7 @@ branches:
- master
- /^v\d+\.\d+\.\d+/
script: ci/script.sh
after_success: ci/publish.sh
notifications:
slack:
secure: OIKgrHnR746qDfezkuMD2idSRrQVkfYII8JqhMmaQ46GRK6WtWC/vp/tThuj+Hc9LoHsBWNW0q4Lur1jchsgjYlgqYpdCGyl19yCMYs6XEnf0G+rXQyczzVeek9ZerwjwY5eyvdzKwE4I2khaNasyiVbdnArNDwg3TXcZdqFV2YkpNBzWJz6ha/QOO9l2D38Csdcfuz+6WdPSvoYyPcjQTvLDjvBcZapLm2lfQXduolRXxtCSDfRCAvl/DnT3TcwTyJEkHzwj32H1SyB3tW/1aPoouy0Lx+s+pQp8EWlnMq8rzS3cc9k51M7T6ziHQv9ATSo02Npf4EfzMByekbL2KO7tkkHax1J8+abUFikwtLyIPBwA9QYDV6lE0qtb3TFsRPSvsoxg7qYPDK4La+tbxMZwM0qR/oEZ5kKb5XGqNd5KO4huU3Eztp6cwXeTOdV7jYVZ1LdM+SmLKnjYaP/HHXLdGn4YJ7K/C59VlXMdaVIenOCbuIgBoK/vBn3dDX0n5xXkCTCgN7m85rOWEaFkj1vz05c/7Zvx7wvPjHe6UPTjSEBwXBU+F7Bwmq+aS5kzdIznZ2YKmn8OzdYlOkWAFhcE2PGOGVstAuqfKOBhAZHqPU0J+j+9uxdopFLHFeVxf+GZJDDB6MPYkn/xRz38JmarCaXI7nvkJFc1y40G00=
Expand Down
6 changes: 6 additions & 0 deletions ci/publish.sh
@@ -0,0 +1,6 @@
#!/bin/bash

if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then
# Only publish coverage on the macOS yarn agent
if [[ "$NODE_INSTALLER" = "yarn" ]]; then cat coverage/lcov.info | node node_modules/coveralls/bin/coveralls.js; fi
fi
2 changes: 0 additions & 2 deletions ci/script.sh
Expand Up @@ -6,6 +6,4 @@ if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
else
if [[ "$NODE_INSTALLER" = "yarn" ]]; then npm i -g yarn; fi
npm run test-coverage -- --installer=$NODE_INSTALLER
# Only publish coverage on the macOS yarn agent
if [[ "$NODE_INSTALLER" = "yarn" ]]; then cat coverage/lcov.info | node node_modules/coveralls/bin/coveralls.js; fi
fi

0 comments on commit 7fbbef7

Please sign in to comment.