Skip to content

Commit fdfeed3

Browse files
committed
Run stylelint's tests during our CI tests.
1 parent 71e1f1e commit fdfeed3

File tree

7 files changed

+33
-6
lines changed

7 files changed

+33
-6
lines changed

.gitmodules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[submodule "integration/stylelint"]
22
path = integration/stylelint
3-
url = https://github.com/stylelint/stylelint.git
3+
url = https://github.com/chriseppstein/stylelint.git
4+
branch = selector-parser-4.0

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
integration/*/

.travis.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,24 @@ sudo: false
33
language: node_js
44
matrix:
55
include:
6+
- node_js: '10'
7+
env: INTEGRATION=false
68
- node_js: '8'
7-
- node_js: '7'
9+
env: INTEGRATION=true
810
- node_js: '6'
11+
env: INTEGRATION=false
912
- node_js: '5'
13+
env: INTEGRATION=false
1014
- node_js: '4'
11-
15+
env: INTEGRATION=false
16+
install:
17+
- npm install -g npm@latest
18+
- npm ci
19+
script:
20+
- npm test
21+
- ./integration_test.sh
22+
cache:
23+
directories:
24+
- ~/.npm
1225
after_success:
1326
- './node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/coveralls'

integration_test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
if [[ $INTEGRATION == "false" ]]; then
3+
exit 0;
4+
fi
5+
git submodule update --init --recursive
6+
npm link
7+
cd integration/stylelint
8+
npm link postcss-selector-parser
9+
npm install
10+
NODE_VERSION=`node -e "console.log(process.version.replace(/v(\d).*/,function(m){return m[1]}))"`
11+
CI="tests $NODE_VERSION"
12+
npm run jest -- --maxWorkers=2 --testPathIgnorePatterns lib/__tests__/standalone-cache.test.js || exit $?

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-selector-parser",
3-
"version": "4.0.0",
3+
"version": "5.0.0-rc.0",
44
"devDependencies": {
55
"ava": "^0.24.0",
66
"babel-cli": "^6.4.0",

0 commit comments

Comments
 (0)