forked from jamespierce-rg/radium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 884 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
dist: trusty
language: node_js
addons:
chrome: stable
node_js:
- "8"
- "10"
- "12"
# Use container-based Travis infrastructure.
sudo: false
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 &
branches:
only:
- master
notifications:
email:
on_success: change
on_failure: always
cache: yarn
script:
# Output useful info for debugging.
- node --version
- yarn --version
# Make sure we can actually build the examples.
- yarn run build-examples
# Run tests
- yarn run lint
- yarn run build
- yarn run test-coverage
# Upload to coveralls, but don't _fail_ if coveralls is down.
- cat coverage/lcov.info | node_modules/.bin/coveralls || echo "Coveralls upload failed"