From 0684dd5b8e3bbf5cea8d8382d7fe263fd920f3b7 Mon Sep 17 00:00:00 2001 From: BinHong Lee Date: Thu, 10 Aug 2017 02:19:00 -0700 Subject: [PATCH 1/4] Added replaced codeclimate with codecov --- .travis.yml | 7 ++++++- README.md | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 11d0faa..05714db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,11 @@ node_js: - "5" - "4" - "lts/*" -script: npm test +install: + - npm install -g codecov +script: + - npm test + - istanbul cover ./node_modules/mocha/bin/_mocha --reporter lcovonly -- -R spec + - codecov env: CODECLIMATE_REPO_TOKEN: a174b03227cdc953c831f45bebcf0af357ec1b8a4b8477f36444c16f084a409f diff --git a/README.md b/README.md index d553004..f16a112 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Dota 2 Random - Alexa Skill -[![Build Status](https://travis-ci.org/binhonglee/dota2-random.svg?branch=master)](https://travis-ci.org/binhonglee/dota2-random) [![Test Coverage](https://codeclimate.com/github/binhonglee/dota2-random/badges/coverage.svg)](https://codeclimate.com/github/binhonglee/dota2-random/coverage) [![Dependency Status](https://gemnasium.com/badges/github.com/binhonglee/dota2-random.svg)](https://gemnasium.com/github.com/binhonglee/dota2-random) +[![Build Status](https://travis-ci.org/binhonglee/dota2-random.svg?branch=master)](https://travis-ci.org/binhonglee/dota2-random) [![codecov](https://codecov.io/gh/binhonglee/dota2-random/branch/master/graph/badge.svg)](https://codecov.io/gh/binhonglee/dota2-random) + [![Dependency Status](https://gemnasium.com/badges/github.com/binhonglee/dota2-random.svg)](https://gemnasium.com/github.com/binhonglee/dota2-random) ## Skill is now available from the [Alexa Skill Store](https://www.amazon.com/binhonglee-Dota2-Random/dp/B073W4GDLS)! From 35afafbcb0baa6ad9efa57de8ae885365433fe8f Mon Sep 17 00:00:00 2001 From: BinHong Lee Date: Thu, 10 Aug 2017 02:22:42 -0700 Subject: [PATCH 2/4] Fix yaml missing installation step --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 05714db..04700d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ node_js: - "4" - "lts/*" install: + - npm install - npm install -g codecov script: - npm test From a1937fece09148dda7c112ae6543cc143aa5054c Mon Sep 17 00:00:00 2001 From: BinHong Lee Date: Thu, 10 Aug 2017 02:40:39 -0700 Subject: [PATCH 3/4] Travis-CI now generate coverage with Istanbul --- .gitignore | 1 + .travis.yml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b8c8cf5..928f563 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ source.zip node_modules +coverage diff --git a/.travis.yml b/.travis.yml index 04700d2..5144360 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,9 +9,10 @@ node_js: install: - npm install - npm install -g codecov + - npm install -g istanbul script: - - npm test - - istanbul cover ./node_modules/mocha/bin/_mocha --reporter lcovonly -- -R spec + - standard src/ + - istanbul cover test/testflow.js - codecov env: CODECLIMATE_REPO_TOKEN: a174b03227cdc953c831f45bebcf0af357ec1b8a4b8477f36444c16f084a409f From 00706d4e74d8a4ddbfd761b46ae6a353dcb858c3 Mon Sep 17 00:00:00 2001 From: BinHong Lee Date: Thu, 10 Aug 2017 02:44:58 -0700 Subject: [PATCH 4/4] Added standard dependency --- .travis.yml | 2 +- package-lock.json | 146 ---------------------------------------------- 2 files changed, 1 insertion(+), 147 deletions(-) delete mode 100644 package-lock.json diff --git a/.travis.yml b/.travis.yml index 5144360..30819b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ install: - npm install -g codecov - npm install -g istanbul script: - - standard src/ + - npm install -g standard && standard src/ && npm uninstall -g standard - istanbul cover test/testflow.js - codecov env: diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 345b0a8..0000000 --- a/package-lock.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "name": "dota2-random", - "version": "1.0.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "alexa-sdk": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/alexa-sdk/-/alexa-sdk-1.0.11.tgz", - "integrity": "sha1-u8XZXJh4vHbEtI95Ca1iDIEESZU=", - "requires": { - "aws-sdk": "2.95.0", - "i18next": "3.5.2", - "i18next-sprintf-postprocessor": "0.2.2" - }, - "dependencies": { - "aws-sdk": { - "version": "2.95.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.95.0.tgz", - "integrity": "sha1-JuIdsUlEOx8GOUnch5hPDRdwDmo=", - "requires": { - "buffer": "4.9.1", - "crypto-browserify": "1.0.9", - "events": "1.1.1", - "jmespath": "0.15.0", - "querystring": "0.2.0", - "sax": "1.2.1", - "url": "0.10.3", - "uuid": "3.0.1", - "xml2js": "0.4.17", - "xmlbuilder": "4.2.1" - }, - "dependencies": { - "buffer": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", - "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", - "requires": { - "base64-js": "1.2.1", - "ieee754": "1.1.8", - "isarray": "1.0.0" - }, - "dependencies": { - "base64-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.2.1.tgz", - "integrity": "sha1-qRlH2h9KUW6jjltOwOw3c2deCIY=" - }, - "ieee754": { - "version": "1.1.8", - "resolved": "http://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz", - "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=" - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" - } - } - }, - "crypto-browserify": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-1.0.9.tgz", - "integrity": "sha1-zFRJaF37hesRyYKKzHy4erW7/MA=" - }, - "events": { - "version": "1.1.1", - "resolved": "http://registry.npmjs.org/events/-/events-1.1.1.tgz", - "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=" - }, - "jmespath": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.15.0.tgz", - "integrity": "sha1-o/Iiqarp+Wb10nx5ZRDigJF2Qhc=" - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=" - }, - "sax": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", - "integrity": "sha1-e45lYZCyKOgaZq6nSEgNgozS03o=" - }, - "url": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", - "integrity": "sha1-Ah5NnHcF8hu/N9A861h2dAJ3TGQ=", - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "http://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=" - } - } - }, - "uuid": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.0.1.tgz", - "integrity": "sha1-ZUS7ot/ajBzxfmKaOjBeK7H+5sE=" - }, - "xml2js": { - "version": "0.4.17", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.17.tgz", - "integrity": "sha1-F76T6q4/O3eTWceVtBlwWogX6Gg=", - "requires": { - "sax": "1.2.1", - "xmlbuilder": "4.2.1" - } - }, - "xmlbuilder": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-4.2.1.tgz", - "integrity": "sha1-qlijBBoGb5DqoWwvU4n/GfP0YaU=", - "requires": { - "lodash": "4.17.4" - }, - "dependencies": { - "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=" - } - } - } - } - }, - "i18next": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/i18next/-/i18next-3.5.2.tgz", - "integrity": "sha1-kwOQ1cMYzqpIWLUt0OQOayA/n0E=" - }, - "i18next-sprintf-postprocessor": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/i18next-sprintf-postprocessor/-/i18next-sprintf-postprocessor-0.2.2.tgz", - "integrity": "sha1-LkCfEENXk4Jpi2otpwzapVHWfqQ=" - } - } - } - } -}