Skip to content

Commit

Permalink
Travis: Simplify and clean up gulp invocation (#19)
Browse files Browse the repository at this point in the history
The default 'script' for javascript projects on Travis CI is
'npm test'. This is the preferred entry point, as it will also
be what (future) contributors intuitively try by default after
cloning the repository (npm it; or: npm install && npm test).

The good news is, running 'npm test' on a clone of this repo
already worked by default, because 'npm test' was already set
up in package.json with the 'scripts/test' property to run Gulp.

Note that this change, while not introducing it, has the side-effect
of restoring use of --verbose for the Travis CI build logs.
  • Loading branch information
Krinkle authored and nicjansma committed Apr 13, 2018
1 parent 5dadf05 commit 5100574
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ node_js:
- "6"
- "5"
- "4"
before_install: npm install -g gulp
script: gulp
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"license": "MIT",
"scripts": {
"test": "gulp travis --verbose"
"test": "gulp --verbose"
},
"devDependencies": {
"commander": "^2.9.0",
Expand Down

0 comments on commit 5100574

Please sign in to comment.