diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-03-13 19:04:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-13 19:04:19 +0300 |
commit | 5da7f7e3d57e45bcabba1a361080db11fe710d56 (patch) | |
tree | b7a198304fb46d70bad122c1644cd912570defce | |
parent | c3f579ae79b3eff9db65f689caeb9e467a587fa8 (diff) |
Refactor npm test scripts. (#439)
-rw-r--r-- | .travis.yml | 3 | ||||
-rw-r--r-- | package.json | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index c90d5ec..563c9f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,7 @@ before_script: - bundle install --deployment --gemfile bootstrap/Gemfile --jobs=3 --retry=3 || travis_terminate 1 - pushd bootstrap && bundle exec jekyll build && popd script: - - npm run travis || travis_terminate 1 - - if [ "$TRAVIS_NODE_VERSION" = "10" ]; then npm run qunit; fi || travis_terminate 1 + - if [ "$TRAVIS_NODE_VERSION" = "10" ]; then npm run nyc -- npm run test:all; else npm run nyc -- npm run test; fi || travis_terminate 1 - node ./src/cli-main.js --disable W003,W005 "bootstrap/_gh_pages/**/index.html" || travis_terminate 1 - node ./src/cli-main.js test/fixtures/x-ua-compatible/missing.html &> x-ua-compatible-missing.output.actual.txt || true - diff test/fixtures/cli/x-ua-compatible-missing.output.txt x-ua-compatible-missing.output.actual.txt diff --git a/package.json b/package.json index fb0a15c..57695d4 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,9 @@ "nodeunit": "nodeunit test", "qunit": "node build/phantom.js", "start": "node ./bin/www", + "nyc": "nyc", "test": "npm run eslint && npm run build && npm run nodeunit", - "travis": "nyc npm test" + "test:all": "npm run eslint && npm run build && npm run nodeunit && npm run qunit" }, "dependencies": { "binary-search": "^1.3.5", |