Skip to content

Commit

Permalink
feature: ZENKO-3076 Add coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
miniscruff committed Jan 5, 2021
1 parent acea850 commit 6a29713
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ yarn-error.log


node_modules
coverage

.idea
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Zenko UI

[![codecov](https://codecov.io/gh/scality/zenko-ui/branch/development/1.0/graph/badge.svg?token=BRX58ZF4VJ)](https://codecov.io/gh/scality/zenko-ui)

Zenko UI is our portal to manage offline Zenko instances.

It provides a User Interface to
Expand Down
13 changes: 12 additions & 1 deletion eve/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ models:
KEYCLOAK_PASSWORD: "123"
KEYCLOAK_USER_FIRSTNAME: "Bart"
KEYCLOAK_USER_LASTNAME: "Simpson"
- env: &coverage
CODECOV_TOKEN: '%(secret:codecov_token)s'
VCS_COMMIT_ID: '%(prop:revision)s'
VCS_BRANCH_NAME: '%(prop:branch)s'
CI_BUILD_ID: '%(prop:bootstrap)s'
- Git: &clone
name: fetch source
repourl: '%(prop:git_reference)s'
Expand Down Expand Up @@ -67,7 +72,7 @@ stages:
haltOnFailure: True
- ShellCommand:
name: run test suite
command: yarn test
command: yarn test:coverage
haltOnFailure: True
- ShellCommand: *yarn-build
- ShellCommand: *docker-build
Expand All @@ -88,6 +93,12 @@ stages:
env:
<<: *deploy-env
<<: *keycloak-env
- ShellCommand:
name: upload test coverage
haltOnFailure: False
command: "curl -s https://codecov.io/bash | bash"
env:
<<: *coverage
post-merge:
worker: *worker
steps:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"test": "jest",
"test:coverage": "jest --coverage --ci",
"test:lint": "eslint --ext js --ext jsx src",
"start:dev": "webpack-dev-server --config webpack.dev.js",
"build": "webpack -p --progress --config webpack.prod.js",
Expand Down

0 comments on commit 6a29713

Please sign in to comment.