Skip to content

Commit

Permalink
feat(app): Scaffold travis file
Browse files Browse the repository at this point in the history
Fixes #21
  • Loading branch information
thaiat committed Feb 5, 2016
1 parent 9eb4778 commit 75c3324
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ module.exports = generators.Base.extend({
this.templatePath('_npmrc'),
this.destinationPath('.npmrc')
);

this.fs.copyTpl(
this.templatePath('_travis.yml'),
this.destinationPath('.travis.yml')
);

this.fs.copyTpl(
this.templatePath('_package.json'),
this.destinationPath('package.json'), {
Expand Down
1 change: 1 addition & 0 deletions generators/app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"devDependencies": {
"autoprefixer": "^6.3.1",
"browser-sync": "^2.10.1",
"coveralls": "^2.11.6",
"css-loader": "^0.23.1",
"eslint": "^1.10.3",
"eslint-plugin-nodeca": "^1.0.3",
Expand Down
12 changes: 12 additions & 0 deletions generators/app/templates/_travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: node_js
sudo: false
node_js:
- v4

cache:
directories:
- node_modules
- bower_components

after_success:
- cat ./coverage/unit/lcov.info | ./node_modules/coveralls/bin/coveralls.js --verbose
1 change: 1 addition & 0 deletions test/mocha/app.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe(generatorShortname + ':app', function() {
'.gitignore',
'.jsbeautifyrc',
'.npmrc',
'.travis.yml',
'.yo-rc.json',
'karma.conf.js',
'package.json',
Expand Down

0 comments on commit 75c3324

Please sign in to comment.