Skip to content

Commit f3a5925

Browse files
committed
[Tests] use shared travis-ci configs
1 parent 6e94800 commit f3a5925

File tree

2 files changed

+6
-37
lines changed

2 files changed

+6
-37
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ max_line_length = off
3030
max_line_length = off
3131

3232
[.travis.yml]
33-
indent_size = 2
33+
indent_size = 1

.travis.yml

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,7 @@
1+
version: ~> 1.0
12
language: node_js
23
os:
3-
- linux
4-
node_js:
5-
- "10"
6-
- "9"
7-
- "8"
8-
- "7"
9-
- "6"
10-
- "5"
11-
- "4"
12-
- "iojs"
13-
- "0.12"
14-
- "0.10"
15-
- "0.8"
16-
before_install:
17-
- 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
18-
- 'nvm install-latest-npm'
19-
install:
20-
- '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;'
21-
script:
22-
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
23-
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
24-
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
25-
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
26-
sudo: false
27-
env:
28-
- TEST=true
29-
matrix:
30-
fast_finish: true
31-
include:
32-
- node_js: "lts/*"
33-
env: PRETEST=true
34-
allow_failures:
35-
- node_js: "9"
36-
- node_js: "7"
37-
- node_js: "5"
38-
- node_js: "iojs"
4+
- linux
5+
import:
6+
- ljharb/travis-ci:node/all.yml
7+
- ljharb/travis-ci:node/pretest.yml

0 commit comments

Comments
 (0)