Skip to content

Commit 6ac63bf

Browse files
committed
conditionally upload coverage reports
1 parent 00d3fdd commit 6ac63bf

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
@@ -43,9 +43,13 @@ script:
4343
- yarn run vscode:prepublish
4444
- yarn run cover:enable
4545
- yarn run testSingleWorkspace --silent
46-
- bash <(curl -s https://codecov.io/bash)
46+
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then
47+
bash <(curl -s https://codecov.io/bash);
48+
fi
4749
- yarn run clean
4850
- yarn run vscode:prepublish
4951
- yarn run cover:enable
5052
- yarn run testMultiWorkspace --silent
51-
- bash <(curl -s https://codecov.io/bash)
53+
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then
54+
bash <(curl -s https://codecov.io/bash);
55+
fi

0 commit comments

Comments
 (0)