Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit aee10d6

Browse files
author
Noel
authored
ci: codecov (#437)
1 parent 4ea259c commit aee10d6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ branches:
2929
install:
3030
- npm install --global yarn
3131
- yarn install
32-
- yarn global add codecov
3332
- yarn global add webpack
3433
script:
3534
- yarn bootstrap
@@ -39,7 +38,10 @@ script:
3938
- bash tasks/tsc.sh
4039
- yarn build:web
4140
after_success:
42-
- codecov
41+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then OS_NAME=macos ; else OS_NAME=$TRAVIS_OS_NAME ; fi
42+
- curl -Os https://uploader.codecov.io/latest/$OS_NAME/codecov
43+
- chmod +x codecov
44+
- ./codecov -t ${CODECOV_TOKEN} -f coverage/coverage-final.json -Z
4345
cache:
4446
directories:
4547
- "$HOME/.yarn-cache"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</div>
99
<hr/>
1010

11-
[![Build Status](https://travis-ci.com/Zilliqa/zilliqa-js.svg?branch=dev)](https://travis-ci.com/Zilliqa/zilliqa-js) [![codecov](https://codecov.io/gh/Zilliqa/zilliqa-js/branch/feature/monorepo/graph/badge.svg)](https://codecov.io/gh/Zilliqa/Zilliqa) [![Discord Chat](https://img.shields.io/discord/308323056592486420.svg)](https://discord.gg/XMRE9tt) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
11+
[![Build Status](https://travis-ci.com/Zilliqa/zilliqa-js.svg?branch=dev)](https://travis-ci.com/Zilliqa/zilliqa-js) [![codecov](https://codecov.io/gh/Zilliqa/zilliqa-js/branch/dev/graph/badge.svg?token=3EupxbfA4Q)](https://codecov.io/gh/Zilliqa/zilliqa-js) [![Discord Chat](https://img.shields.io/discord/308323056592486420.svg)](https://discord.gg/XMRE9tt) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
1212

1313
## Introduction
1414

tasks/tsc.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ npx tsc ./index.ts --target es5 --noEmit \
1616
--strict --skipLibCheck false
1717

1818
echo "PASS:tsc"
19+
20+
cd $HOME

0 commit comments

Comments
 (0)