Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tooling): Changing Travis; adding Coverall #5

Merged
merged 11 commits into from
Nov 17, 2018
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"@babel/preset-typescript"
],
"plugins": [
"babel-plugin-istanbul",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-runtime",
"@babel/plugin-transform-arrow-functions",
Expand Down
6 changes: 3 additions & 3 deletions .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
".tsx"
],
"include": [
"src/*"
"src/**/*.ts"
],
"exclude": [
"dist",
"docs",
"coverage",
"lib"
],
"reporter": [
"html",
"text-lcov",
"lcov",
"text-summary"
],
"cache": true,
Expand Down
22 changes: 9 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,29 @@ node_js:
- "stable"
- "10"
- "9"
- "8"
- "7"
- "6"
stages:
- setup
- test
- document
- deploy
- |
setup
test
document
name: deploy
if: branch = master
jobs:
include:
- stage: setup
name: install
script:
- npm i -g typescript@latest
- npm i -g codecov
- npm i -g coveralls
- stage: test
name: "Run all unit tests"
script: npm run test:all
name: "Run smoketests"
script: npm run smoketest
- stage: document
name: "Generate coverage report"
script: npm run coverage
name: "Generate API documents"
script: npm run docs
- stage: deploy
if: branch = master
name: "Deploying new project release with semantic-release in CI"
script: npm run travis-deploy-once "npm run semantic-release"
name: "Deploy Github Pages"
Expand All @@ -48,8 +44,8 @@ jobs:
keep-history: true
on:
branch: master
name: "Deploying Codecov report"
script: codecov
name: "Deploying Coveralls report"
script: npm run coverage
branches:
except:
- /^v\d+\.\d+\.\d+$/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Now remove this part and fill out the rest with your unique project information.
[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Master: [![Build Status](https://travis-ci.org/srepollock/ts-bootstrap.svg?branch=master)](https://travis-ci.org/srepollock/ts-bootstrap) [![Codecov](https://codecov.io/gh/srepollock/ts-bootstrap/branch/master/graph/badge.svg)](https://codecov.io/gh/srepollock/ts-bootstrap/branch/master/graph/badge.svg)
Master: [![Build Status](https://travis-ci.org/srepollock/ts-bootstrap.svg?branch=master)](https://travis-ci.org/srepollock/ts-bootstrap) [![Coverage Status](https://coveralls.io/repos/github/srepollock/ts-lib-tutorial/badge.svg?branch=master)](https://coveralls.io/github/srepollock/ts-lib-tutorial?branch=master)

## Getting Started

Expand Down
Empty file added coverage.lcov
Empty file.
Loading