-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (36 loc) · 1.4 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
language: node_js
node_js:
- "9"
- "8"
- "7"
before_install:
- 'nvm install-latest-npm'
install:
- 'if [ -n "${PACKAGE-}" ]; then cd "packages/${PACKAGE}"; fi'
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
- 'if [ -n "${ESLINT}" ]; then npm install --no-save "eslint@${ESLINT}"; fi'
script:
- 'if [ -n "${PREPUBLISH-}" ]; then npm run pretravis && npm run prepublish && npm run posttravis; elif [ -n "${LINT-}" ]; then npm run lint; else npm run travis; fi'
sudo: false
env:
matrix:
- 'TEST=true ESLINT=4 PACKAGE=eslint-config-axept'
- 'TEST=true ESLINT=4 PACKAGE=eslint-config-axept-base'
- 'TEST=true ESLINT=4 PACKAGE=eslint-config-axept-flow'
matrix:
fast_finish: true
include:
- node_js: "lts/*"
env: PREPUBLISH=true ESLINT=4 PACKAGE=eslint-config-axept
- node_js: "lts/*"
env: PREPUBLISH=true ESLINT=4 PACKAGE=eslint-config-axept-base
- node_js: "lts/*"
env: PREPUBLISH=true ESLINT=4 PACKAGE=eslint-config-axept-flow
- node_js: "lts/*"
env: LINT=true
allow_failures:
- node_js: "9"
- node_js: "7"
- env: PREPUBLISH=true ESLINT=4 PACKAGE=eslint-config-axept
- env: PREPUBLISH=true ESLINT=4 PACKAGE=eslint-config-axept-base
- env: PREPUBLISH=true ESLINT=4 PACKAGE=eslint-config-axept-flow