blob: 83bafaa03a881330e1c23320bf1de8f0f623568d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set +x
NOTESTS=$1
if [ "$NOTESTS" == '1' ]
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 > /dev/null
set -x
stylelint --config ../.stylelintrc "phpBB/styles/prosilver/theme/*.css"
# Disable admin stylelint for now
# stylelint --config ../.stylelintrc "phpBB/adm/style/*.css"
fi
|