Skip to content

Commit

Permalink
Run stylelint's tests during our CI tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed May 4, 2018
1 parent 71e1f1e commit fdfeed3
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitmodules
@@ -1,3 +1,4 @@
[submodule "integration/stylelint"]
path = integration/stylelint
url = https://github.com/stylelint/stylelint.git
url = https://github.com/chriseppstein/stylelint.git
branch = selector-parser-4.0
1 change: 1 addition & 0 deletions .npmignore
@@ -0,0 +1 @@
integration/*/
17 changes: 15 additions & 2 deletions .travis.yml
Expand Up @@ -3,11 +3,24 @@ sudo: false
language: node_js
matrix:
include:
- node_js: '10'
env: INTEGRATION=false
- node_js: '8'
- node_js: '7'
env: INTEGRATION=true
- node_js: '6'
env: INTEGRATION=false
- node_js: '5'
env: INTEGRATION=false
- node_js: '4'

env: INTEGRATION=false
install:
- npm install -g npm@latest
- npm ci
script:
- npm test
- ./integration_test.sh
cache:
directories:
- ~/.npm
after_success:
- './node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/coveralls'
12 changes: 12 additions & 0 deletions integration_test.sh
@@ -0,0 +1,12 @@
#!/bin/bash
if [[ $INTEGRATION == "false" ]]; then
exit 0;
fi
git submodule update --init --recursive
npm link
cd integration/stylelint
npm link postcss-selector-parser
npm install
NODE_VERSION=`node -e "console.log(process.version.replace(/v(\d).*/,function(m){return m[1]}))"`
CI="tests $NODE_VERSION"
npm run jest -- --maxWorkers=2 --testPathIgnorePatterns lib/__tests__/standalone-cache.test.js || exit $?
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "postcss-selector-parser",
"version": "4.0.0",
"version": "5.0.0-rc.0",
"devDependencies": {
"ava": "^0.24.0",
"babel-cli": "^6.4.0",
Expand Down

0 comments on commit fdfeed3

Please sign in to comment.