mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-29 02:29:21 +02:00
[ticket/15924] Use default travis node version
PHPBB3-15924
This commit is contained in:
parent
07efa7c19b
commit
dfe3d13219
@ -15,20 +15,6 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user