fix node version for travis

pull/8/head
Dave Conway-Jones 2016-05-06 14:13:52 +01:00
rodzic c16362af92
commit 20dc9dc06a
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -5,15 +5,15 @@
- Node_modules
env:
# Node in order to install it by running the command individually, here to specify the version
- NODE_VERSION = "4.*"
- NODE_VERSION = "4.4"
before_install:
# Install the nvm. Nvm is not included by default in OS X environment of Travis
- git clone https://github.com/creationix/nvm.git /tmp/.nvm
- source /tmp/.nvm/nvm.sh
# To install the Node of the specified version
- nvm install $NODE_VERSION
- nvm install 4.4
# To enable the Node of the specified version
- nvm use --delete-prefix $NODE_VERSION
- nvm use --delete-prefix 4.4
- node --version
install:
- npm install