Travis CI for stylelint

This commit is contained in:
rhyneav 2018-05-22 21:19:07 -04:00
parent 4f2d66f2b6
commit 5d2c93691e
2 changed files with 8 additions and 7 deletions

View file

@ -14,6 +14,12 @@ addons:
packages:
- google-chrome-stable fluxbox
before_install:
- npm install -g npm@5.10.0
install:
- npm ci
before_script:
- "sh -e /etc/init.d/xvfb start"
- sleep 3
@ -22,11 +28,6 @@ before_script:
- chmod +x ./tests/build/scripts/run_jake.sh
- export DISPLAY=:99.0
- gulp build
- npm run stylelint
script: "./jake.sh loose=true capture=Firefox"
before_install:
- npm i -g npm@latest
install:
- npm ci

View file

@ -8,7 +8,7 @@
"build": "node node_modules/gulp/bin/gulp.js build",
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "gulp postinstall",
"stylelint": "node_modules/stylelint/bin/stylelint.js 'src/**/*.scss'; exit 0"
"stylelint": "node_modules/stylelint/bin/stylelint.js 'src/**/*.scss'"
},
"repository": {
"type": "git",