react-fast-compare/.travis.yml
Ryan Roemer 53a5ca111b
Chore/browser tests (#10)
- Refactor the test directory structure.
- Imports the `node` tests into the browser, building with webpack. They are the source of truth.
- Run headless chrome in Travis.
- Run IE9 in Appveyor.
- Use `builder` to parallelize running lint and various tests.
- Fixes #7
2018-04-13 14:29:01 -07:00

38 lines
562 B
YAML

dist: trusty
language: node_js
node_js:
- "6"
- "8"
- "9"
branches:
only:
- master
addons:
chrome: stable
before_install:
# GUI for real browsers.
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Headless chrome
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
script:
# Output useful info for debugging.
- node --version
- yarn --version
# Tests
- yarn run test
after_script:
- coveralls < coverage/lcov.info
cache:
yarn: true
directories:
- node_modules