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 +});