From ba519b807a9a81f3ce1a90881c250a548d5da947 Mon Sep 17 00:00:00 2001 From: Katherine Stanley Date: Mon, 11 Dec 2017 09:52:31 +0000 Subject: [PATCH 1/4] Remove extra cd ./npm and add shasum for hub-linux. Signed-off-by: Katherine Stanley --- .travis.yml | 4 ++-- sha256.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 sha256.txt diff --git a/.travis.yml b/.travis.yml index e9317b8..4ece92c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,11 @@ language: java jdk: - oraclejdk8 before_install: - - nvm install 6.9.1 - - cd ./npm - wget https://github.com/github/hub/releases/download/v2.2.9/hub-linux-386-2.2.9.tgz + - shasum -a 256 -c ./sha256.txt - tar -xvzf hub-linux-386-2.2.9.tgz - export PATH=${PATH}:$PWD/hub-linux-386-2.2.9/bin/ + - nvm install 6.9.1 - cd ./npm - npm i -g makeshift && makeshift -r https://registry.npmjs.com install: diff --git a/sha256.txt b/sha256.txt new file mode 100644 index 0000000..83c1c15 --- /dev/null +++ b/sha256.txt @@ -0,0 +1 @@ +353772dbf336bea3cb09547a943281e317956021d853e4e3383871b2cd85a475 hub-linux-386-2.2.9.tgz \ No newline at end of file From 6f640b83a6e678cb1acccc0be45dc5b502e43712 Mon Sep 17 00:00:00 2001 From: Katherine Stanley Date: Mon, 11 Dec 2017 10:09:12 +0000 Subject: [PATCH 2/4] Add missing dependencies and remove ejs package requirement from linter. Signed-off-by: Katherine Stanley --- .eslintrc.yml | 2 -- npm/package.json | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 1a585e6..e07de7c 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -10,5 +10,3 @@ rules: indent: ["error", 2, { "SwitchCase": 1}] extends: eslint:recommended - -plugins: [ejs] diff --git a/npm/package.json b/npm/package.json index c43db57..0404315 100644 --- a/npm/package.json +++ b/npm/package.json @@ -9,7 +9,6 @@ ], "dependencies": { "handlebars": "^4.0.0", - "nyc": "^11.3.0", "yeoman-generator": "^1.0.0" }, "devDependencies": { @@ -17,7 +16,10 @@ "mocha": "^3.2.0", "standard-version": "^4.2.0", "yeoman-assert": "^2.2.2", - "yeoman-test": "^1.6.0" + "yeoman-test": "^1.6.0", + "eslint": "^4.2.0", + "nyc": "^11.3.0", + "coveralls": "^2.13.1" }, "scripts": { "test": "nyc mocha test/unit/*", From 6e96f992d66d58639dc06ff96ec24d6938af9d34 Mon Sep 17 00:00:00 2001 From: Katherine Stanley Date: Mon, 11 Dec 2017 10:23:19 +0000 Subject: [PATCH 3/4] Add coveralls for unit tests. Signed-off-by: Katherine Stanley --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4ece92c..9d0e342 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ install: script: - npm run lint - npm test + - npm run coveralls - npm run testint - npm run coveralls - ../deploy.sh \ No newline at end of file From 3f9c5d05a4867ad5ab44529eef56c9afcf1ced6b Mon Sep 17 00:00:00 2001 From: Katherine Stanley Date: Mon, 11 Dec 2017 10:27:35 +0000 Subject: [PATCH 4/4] Remove second coveralls to see whether it is posting both. Signed-off-by: Katherine Stanley --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9d0e342..588ca58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,5 +16,4 @@ script: - npm test - npm run coveralls - npm run testint - - npm run coveralls - ../deploy.sh \ No newline at end of file