Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Tweak Travis scripts. #437

Merged
merged 1 commit into from Mar 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions .travis.yml
Expand Up @@ -8,13 +8,13 @@ node_js:
install:
- npm install
before_script:
- git clone --depth 1 https://github.com/twbs/bootstrap.git --branch v3-dev
- bundle install --deployment --gemfile bootstrap/Gemfile --jobs=3 --retry=3
- git clone --depth 1 https://github.com/twbs/bootstrap.git --branch v3-dev || travis_terminate 1
- bundle install --deployment --gemfile bootstrap/Gemfile --jobs=3 --retry=3 || travis_terminate 1
- pushd bootstrap && bundle exec jekyll build && popd
script:
- npm run travis
- node ./src/cli-main.js --disable W003,W005 "bootstrap/_gh_pages/**/index.html"
- node ./src/cli-main.js --disable W003,E001 test/fixtures/doctype/missing.html test/fixtures/viewport/missing.html
- npm run travis || travis_terminate 1
- if [ "$TRAVIS_NODE_VERSION" = "10" ]; then npm run qunit; 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
after_success:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -23,7 +23,7 @@
"nodeunit": "nodeunit test",
"qunit": "node build/phantom.js",
"start": "node ./bin/www",
"test": "npm run eslint && npm run build && npm run nodeunit && npm run qunit",
"test": "npm run eslint && npm run build && npm run nodeunit",
"travis": "nyc npm test"
},
"dependencies": {
Expand Down