Skip to content
Permalink
Browse files

chore(generic): only publish CI coverage on success

  • Loading branch information
MarshallOfSound authored and malept committed Jan 3, 2017
1 parent a506dd3 commit 7fbbef72dcff5617a533f270c19b3c7289449571
Showing with 7 additions and 2 deletions.
  1. +1 −0 .travis.yml
  2. +6 −0 ci/publish.sh
  3. +0 −2 ci/script.sh
@@ -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=
@@ -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
@@ -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.
You can’t perform that action at this time.