Skip to content

Commit

Permalink
Trying to change the build matrix to only run browser tests on Node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sunesimonsen committed Apr 24, 2019
1 parent 1bf68a2 commit 8294f8a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
56 changes: 29 additions & 27 deletions .travis.yml
@@ -1,36 +1,38 @@
services:
- docker
sudo: required
language: node_js
cache:
directories:
- node_modules

env:
- TARGET=test

node_js:
- '6'
- '8'
- '8.7.0'
- '9'
- '10'
- 'node'

addons:
chrome: stable
apt:
packages:
- gcc-4.8
- g++-4.8
env: CXX="g++-4.8" CC="gcc-4.8"

script: 'npm run ci'
after_success: '<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js'

# jsdom 3.x fails on these, but jsdom 4.x+ fails on those below :(((
matrix:
allow_failures:
- node_js: '3'
- node_js: '4'
include:
- name: Lint
node_js: '8.7.0'
env:
- TARGET=lint
- name: Coverage
node_js: '8.7.0'
env:
- TARGET=coverage
- name: BrowserStack IE11
node_js: '8'
env: BROWSER=ie11
node_js: '8.7.0'
env:
- TARGET=test-browser
- BROWSER=ie11
- name: Chrome headless
node_js: "8"
env: BROWSER=ChromeHeadless
node_js: '8.7.0'
env:
- TARGET=test-browser
- BROWSER=ChromeHeadless

addons:
chrome: stable

script: npm run $TARGET

after_success: '<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js'
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -21,7 +21,6 @@
"test-docs": "mocha `find documentation -name '*.md'`",
"test-node": "mocha ./test/*.js",
"test-headless": "npm run test-browser",
"ci": "([ -z $BROWSER ] && npm run lint && npm run coverage); ([ -n $BROWSER ] && npm run test-browser)",
"coverage": "nyc --reporter=lcov --reporter=text npm test",
"preversion": "npm run build && npm run bundle && npm run lint && npm run test && git add unexpected-dom.*",
"postversion": "npm run changelog && git add CHANGELOG.md && git commit --allow-empty -m 'Update changelog' && npm run generate-site && gh-pages -d site-build",
Expand Down

0 comments on commit 8294f8a

Please sign in to comment.