Skip to content

Commit d806859

Browse files
committed
[Tests] run prepublish tests as allowed failures
1 parent c68fa63 commit d806859

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.travis.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,28 @@ node_js:
55
- "6"
66
- "5"
77
- "4"
8-
env:
9-
- 'TEST_DIR=packages/eslint-config-airbnb'
10-
- 'TEST_DIR=packages/eslint-config-airbnb-base'
118
before_install:
12-
- 'cd $TEST_DIR'
139
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g npm@1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi'
1410
- 'if [ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" = "0" ] || [ "${TRAVIS_NODE_VERSION:0:4}" = "iojs" ]; then npm install -g npm@4.5 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
1511
install:
12+
- 'cd "packages/${PACKAGE}"'
1613
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g npm@1.3 && npm install -g npm@1.4.28 && npm install -g npm@2 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
1714
script:
18-
- 'npm run travis'
15+
- 'if [ -n "${PREPUBLISH-}" ]; then npm run prepublish; else npm run travis; fi'
1916
sudo: false
17+
env:
18+
matrix:
19+
- 'TEST=true PACKAGE=eslint-config-airbnb'
20+
- 'TEST=true PACKAGE=eslint-config-airbnb-base'
2021
matrix:
2122
fast_finish: true
23+
include:
24+
- node_js: "node"
25+
env: PREPUBLISH=true PACKAGE=eslint-config-airbnb
26+
- node_js: "node"
27+
env: PREPUBLISH=true PACKAGE=eslint-config-airbnb-base
2228
allow_failures:
2329
- node_js: "7"
2430
- node_js: "5"
31+
- env: PREPUBLISH=true PACKAGE=eslint-config-airbnb
32+
- env: PREPUBLISH=true PACKAGE=eslint-config-airbnb-base

0 commit comments

Comments
 (0)