Skip to content

Commit 09e8b98

Browse files
committed
instanbul -> nyc, and fix the old travis integration
1 parent 9438638 commit 09e8b98

File tree

4 files changed

+701
-261
lines changed

4 files changed

+701
-261
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
os:
2+
- linux
3+
- osx
14
language: node_js
25
node_js:
36
- "node"
4-
- "6"
5-
- "4"
7+
- "lts/*"
68
after_success:
79
- "npm run coveralls"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# adventure.js
22

3-
[![Build Status](https://travis-ci.org/raydog/adventure.js.svg?branch=master)](https://travis-ci.org/raydog/adventure.js) [![Coverage Status](https://coveralls.io/repos/github/raydog/adventure.js/badge.svg?branch=master)](https://coveralls.io/github/raydog/adventure.js?branch=master) [![NPM Version](https://img.shields.io/npm/v/adventurejs.svg)](https://www.npmjs.com/package/adventurejs)
3+
[![Build Status](https://travis-ci.com/raydog/adventure.js.svg?branch=master)](https://travis-ci.com/raydog/adventure.js) [![Coverage Status](https://coveralls.io/repos/github/raydog/adventure.js/badge.svg?branch=master)](https://coveralls.io/github/raydog/adventure.js?branch=master) [![NPM Version](https://img.shields.io/npm/v/adventurejs.svg)](https://www.npmjs.com/package/adventurejs)
44

5-
A javascript port of the 350-point version of the classic Adventure game. I originally wrote this code as part of a Slackbot, where people could play the game by PM-ing the bot. I broke the code out of the original project so it could be reused and, well, here we are.
5+
A javascript port of the 350-point version of the classic Adventure game. I originally wrote this code as part of a Slackbot, where people could play the game by DM-ing the bot. I broke the code out of the original project so it could be reused and, well, here we are.
66

77
## Playing the game
88

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"coveralls": "3.1.0",
2323
"eslint": "7.27.0",
2424
"mocha": "8.4.0",
25-
"istanbul": "0.4.5"
25+
"nyc": "15.1.0"
2626
},
2727
"scripts": {
28-
"coverage": "istanbul cover _mocha -- test",
29-
"coveralls": "istanbul cover _mocha --report lcovonly -- test && cat ./coverage/lcov.info | coveralls",
30-
"test": "mocha test"
28+
"test": "mocha",
29+
"coverage": "nyc npm test",
30+
"coveralls": "npm run coverage && nyc report --reporter=text-lcov | coveralls"
3131
},
3232
"author": "Ray Myers",
3333
"license": "MIT"

0 commit comments

Comments
 (0)