forked from urobots/react-dates-fns
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (43 loc) · 1.07 KB
/
.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
language: node_js
node_js:
- 14
- 12
- 10
- 8
- 6
before_install:
- 'nvm install-latest-npm'
services:
- xvfb
before_script:
- 'if [ -n "${KARMA-}" ]; then export DISPLAY=:99.0; fi'
script:
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
- 'if [ -n "${BUILD-}" ]; then npm run build ; fi'
- 'if [ "${TEST-}" = true ]; then npm run tests-only ; fi'
- 'if [ -n "${KARMA-}" ]; then npm run tests-karma ; fi'
- 'if [ -n "${COVERAGE-}" ] && [ "${TRAVIS_BRANCH-}" = "master" ]; then npm run cover; cat ./coverage/lcov.info | ./node_modules/.bin/coveralls ; fi'
install:
- 'if [ -n "${LINT-}" ]; then npm install --legacy-bundling ; else npm install ; fi'
env:
global:
- TEST=true
matrix:
- REACT=0.14
- REACT=15
- REACT=16
sudo: false
matrix:
fast_finish: true
include:
- node_js: "lts/*"
env: LINT=true TEST=false
- node_js: "lts/*"
env: BUILD=true TEST=false
- node_js: "lts/*"
env: COVERAGE=true TEST=false
- node_js: "lts/*"
- env: KARMA=true TEST=false
allow_failures:
- node_js: "10"
env: REACT=16