diff --git a/.travis.yml b/.travis.yml index cdb0129741..23c230d2a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ before_script: - export PATH=$HOME/bin:$PATH - npm install -g bower gulp-cli@1 - bower install -- gulp lint +- npm run lint script: - xvfb-run wct - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s 'windows 10/microsoftedge@14' -s 'windows 8.1/internet explorer@11' -s 'os x 10.11/safari@9' -s 'macos 10.12/safari@10' -s 'Linux/chrome@41'; fi diff --git a/package.json b/package.json index ce532a1750..9d1c72d1de 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ }, "scripts": { "build": "gulp", - "test": "gulp lint && wct" + "test": "npm run lint && wct", + "lint": "gulp lint lint-closure" }, "repository": { "type": "git",