Skip to content

Commit

Permalink
fix: integrate coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
thatkookooguy committed May 19, 2019
1 parent ed60ac4 commit 48e6a09
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ lib-cov
# Coverage directory used by tools like istanbul
coverage

# test reports
test-results/**

# nyc test coverage
.nyc_output

Expand Down
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ stages:
- deploy
jobs:
include:
# - stage: test
# node_js: lts/*
# script:
# - npm run build
# - npm run test
# - npm run coveralls
- stage: test
node_js: lts/*
script:
- npm run build
- npm run test
- npm run coveralls
- stage: release
node_js: lts/*
script:
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<p align="center">
<a href="https://github/apps/l1ntit" target="blank"><img src="/alfred.jpg" width="150" alt="achievibit Logo" />
</a>
<h2 align="center">alfred</h2>
<h2 align="center">@kibibit/alfred</h2>
</p>
<!-- <p align="center">
<a href="https://probot.github.io/"><img src="https://img.shields.io/badge/Probot-b33p-00B0D8.svg?style=for-the-badge&logo=probot&logoColor=white"></a>
</p>
</p> -->
<p align="center">
<a href="https://www.npmjs.com/package/@kibibit/tdd1t"><img src="https://img.shields.io/npm/v/@kibibit/tdd1t.svg?logo=npm&color=CB3837"></a>
<a href="https://www.npmjs.com/package/@kibibit/alfred"><img src="https://img.shields.io/npm/v/@kibibit/alfred.svg?logo=npm&color=CB3837"></a>
<a href="https://github.com/semantic-release/semantic-release"><img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg"></a>
<a href="https://greenkeeper.io/"><img src="https://img.shields.io/badge/greenkeeper-enabled-brightgreen.svg"></a>
<a href="https://travis-ci.org/Kibibit/tdd1t"><img src="https://travis-ci.org/Kibibit/tdd1t.svg?branch=master"></a>
<a href="https://coveralls.io/github/Kibibit/tdd1t?branch=master"><img src="https://coveralls.io/repos/github/Kibibit/tdd1t/badge.svg?branch=master"></a>
<a href="#contributors"><img src="https://img.shields.io/badge/all_contributors-4-orange.svg"></a>
<a href="https://travis-ci.org/Kibibit/alfred"><img src="https://travis-ci.org/Kibibit/alfred.svg?branch=master"></a>
<a href="https://coveralls.io/github/Kibibit/alfred?branch=master"><img src="https://coveralls.io/repos/github/Kibibit/alfred/badge.svg?branch=master"></a>
<a href="#contributors"><img src="https://img.shields.io/badge/all_contributors-1-orange.svg"></a>
<a href="https://salt.bountysource.com/teams/kibibit"><img src="https://img.shields.io/endpoint.svg?url=https://monthly-salt.now.sh/kibibit&style=flat-square"></a>
</p> -->
</p>
<p align="center">
Monitor Jenkins jobs to completion from node or cli
</p>
Expand Down
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
coverageReporters: ["json", "lcov", "text", "clover", "html"],
modulePathIgnorePatterns: ["<rootDir>/lib/"],
collectCoverageFrom: [
"src/**/*.ts",
"!src/**/index.ts",
// "!src/announce-it-cli.ts"
],
watchPathIgnorePatterns: [
".*test-results.*\\.js"
],
reporters: ["default", "jest-stare"],
testResultsProcessor: "./node_modules/jest-stare"
};
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"semantic-release": "semantic-release",
"start": "node ./lib/alfred-cli",
"test:watch": "jest --watchAll --coverage",
"test": "jest --coverage",
"tests": "tsc"
"test": "jest --coverage"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -76,17 +75,22 @@
"@types/command-line-usage": "^5.0.1",
"@types/fs-extra": "^7.0.0",
"@types/jenkins": "^0.23.1",
"@types/jest": "^24.0.13",
"@types/lodash": "^4.14.129",
"all-contributors-cli": "^6.4.0",
"coveralls": "^3.0.3",
"jest": "^24.8.0",
"jest-stare": "^1.13.2",
"npm-check": "^5.9.0",
"semantic-release": "^16.0.0-beta.18",
"semantic-release-cli": "^5.1.0",
"ts-jest": "^24.0.2",
"ts-node": "^8.1.0",
"tslint": "^5.16.0",
"typescript": "^3.4.5",
"semantic-release": "^16.0.0-beta.18"
"typescript": "^3.4.5"
},
"jest-stare": {
"resultDir": "test-results/",
"coverageLink": "../coverage/index.html"
}
}
3 changes: 3 additions & 0 deletions src/alfred.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
describe('alfred', () => {
it.todo('should throw error when missing options');
});

0 comments on commit 48e6a09

Please sign in to comment.