From 8dd677e72d3d0ee78f61e1b0d0956dffd4b649c2 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Mon, 7 Mar 2022 17:36:32 +0900 Subject: [PATCH] Remove setting files for Travis CI from node templates --- lib/util.js | 10 +--------- templates/function/.travis.yml.mustache | 5 ----- templates/swagger/.travis.yml.mustache | 5 ----- templates/webofthings/.travis.yml.mustache | 5 ----- test/lib/function_spec.js | 1 - test/lib/swagger_spec.js | 3 +-- 6 files changed, 2 insertions(+), 27 deletions(-) delete mode 100755 templates/function/.travis.yml.mustache delete mode 100755 templates/swagger/.travis.yml.mustache delete mode 100755 templates/webofthings/.travis.yml.mustache diff --git a/lib/util.js b/lib/util.js index b25b2fc..05d3d73 100644 --- a/lib/util.js +++ b/lib/util.js @@ -96,14 +96,6 @@ function createCommonFiles(templateDirectory, data) { console.error(error); } } - try { - var buf = fs.readFileSync(path.join(templateDirectory, '.travis.yml.mustache')); - fs.writeFileSync(path.join(data.dst, data.module, '.travis.yml'), buf); - } catch (error) { - if (error.code !== 'EEXIST') { - console.error(error); - } - } } function runNpmPack(data) { @@ -140,4 +132,4 @@ module.exports = { runNpmPack, extractKeywords, skipBom -} \ No newline at end of file +} diff --git a/templates/function/.travis.yml.mustache b/templates/function/.travis.yml.mustache deleted file mode 100755 index 8184ad6..0000000 --- a/templates/function/.travis.yml.mustache +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "12" - - "10" - - "8" diff --git a/templates/swagger/.travis.yml.mustache b/templates/swagger/.travis.yml.mustache deleted file mode 100755 index 8184ad6..0000000 --- a/templates/swagger/.travis.yml.mustache +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "12" - - "10" - - "8" diff --git a/templates/webofthings/.travis.yml.mustache b/templates/webofthings/.travis.yml.mustache deleted file mode 100755 index 8184ad6..0000000 --- a/templates/webofthings/.travis.yml.mustache +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "12" - - "10" - - "8" diff --git a/test/lib/function_spec.js b/test/lib/function_spec.js index 1229019..4f4a2c4 100644 --- a/test/lib/function_spec.js +++ b/test/lib/function_spec.js @@ -19,7 +19,6 @@ describe('Function node', function () { fs.statSync(result + '/icons/icon.svg').size.should.be.above(0); fs.statSync(result + '/README.md').size.should.be.above(0); fs.statSync(result + '/LICENSE').size.should.be.above(0); - fs.statSync(result + '/.travis.yml').size.should.be.above(0); del.sync(result); done(); }); diff --git a/test/lib/swagger_spec.js b/test/lib/swagger_spec.js index 0bc417d..21c05e1 100644 --- a/test/lib/swagger_spec.js +++ b/test/lib/swagger_spec.js @@ -28,7 +28,6 @@ describe('swagger node', function () { fs.statSync(result + '/locales/zh-CN/node.json').size.should.be.above(0); fs.statSync(result + '/README.md').size.should.be.above(0); fs.statSync(result + '/LICENSE').size.should.be.above(0); - fs.statSync(result + '/.travis.yml').size.should.be.above(0); del.sync(result); done(); }); @@ -49,4 +48,4 @@ describe('swagger node', function () { done(); }); }); -}); \ No newline at end of file +});