mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #5495 from marc1706/ticket/15924
[ticket/15924] Fix stylelint after switching to trusty builds
This commit is contained in:
commit
0ac41f8027
1 changed files with 2 additions and 16 deletions
|
@ -15,24 +15,10 @@ NOTESTS=$1
|
||||||
|
|
||||||
if [ "$NOTESTS" == '1' ]
|
if [ "$NOTESTS" == '1' ]
|
||||||
then
|
then
|
||||||
# Define a node version.
|
|
||||||
TRAVIS_NODE_VERSION="4"
|
|
||||||
|
|
||||||
# Clear out whatever version of NVM Travis has.
|
|
||||||
# Their version of NVM is probably old.
|
|
||||||
rm -rf ~/.nvm
|
|
||||||
# Grab NVM.
|
|
||||||
git clone https://github.com/creationix/nvm.git ~/.nvm > /dev/null
|
|
||||||
# Checkout the latest stable tag.
|
|
||||||
# Note that you can just hardcode a preferred version here.
|
|
||||||
(cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`)
|
|
||||||
# Install the desired version of Node
|
|
||||||
source ~/.nvm/nvm.sh
|
|
||||||
nvm install $TRAVIS_NODE_VERSION > /dev/null
|
|
||||||
npm install -g > /dev/null
|
npm install -g > /dev/null
|
||||||
npm install > /dev/null
|
npm install > /dev/null
|
||||||
set -x
|
set -x
|
||||||
stylelint "phpBB/styles/prosilver/theme/*.css"
|
node_modules/stylelint/bin/stylelint.js "phpBB/styles/prosilver/theme/*.css"
|
||||||
# Disable admin stylelint for now
|
# Disable admin stylelint for now
|
||||||
stylelint "phpBB/adm/style/*.css"
|
node_modules/stylelint/bin/stylelint.js "phpBB/adm/style/*.css"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue