Standardise on node v6/v7

This commit is contained in:
Richard van der Hoff 2017-05-30 15:11:17 +01:00
parent 8e1dea7bd1
commit 33b95d4965
2 changed files with 20 additions and 8 deletions

View File

@ -1,6 +1,17 @@
language: node_js language: node_js
node_js: node_js:
- 6 # node v6, to match jenkins # make sure we work with a range of node versions.
# As of the time of writing:
# - 4.x is still in LTS (until April 2018), but some of our deps (notably
# extract-zip) don't work with it
# - 5.x has been EOLed for nearly a year.
# - 6.x is the current 'LTS' version
# - 7.x is the current 'current' version (until October 2017)
#
# see: https://github.com/nodejs/LTS/
- 6.0
- 6
- 7
install: install:
- scripts/fetch-develop.deps.sh - scripts/fetch-develop.deps.sh
- npm install - npm install

View File

@ -55,9 +55,10 @@ Building From Source
Riot is a modular webapp built with modern ES6 and requires a npm build system Riot is a modular webapp built with modern ES6 and requires a npm build system
to build. to build.
1. Install or update `node.js` so that your `npm` is at least at version `2.0.0` 1. Install or update `node.js` so that your `node` is at least v6.0.0 (and `npm`
1. Clone the repo: `git clone https://github.com/vector-im/riot-web.git` is at least v3.8.6).
1. Switch to the riot-web directory: `cd riot-web` 1. Clone the repo: `git clone https://github.com/vector-im/riot-web.git`.
1. Switch to the riot-web directory: `cd riot-web`.
1. If you're using the `develop` branch, install the develop versions of the 1. If you're using the `develop` branch, install the develop versions of the
dependencies, as the released ones will be too old: dependencies, as the released ones will be too old:
``` ```
@ -65,7 +66,7 @@ to build.
``` ```
Whenever you git pull on riot-web you will also probably need to force an update Whenever you git pull on riot-web you will also probably need to force an update
to these dependencies - the simplest way is to re-run the script, but you can also to these dependencies - the simplest way is to re-run the script, but you can also
manually update and reuild them: manually update and rebuild them:
``` ```
cd matrix-js-sdk cd matrix-js-sdk
git pull git pull
@ -85,10 +86,10 @@ to build.
up-to-date. Or just use https://riot.im/develop - the continuous integration up-to-date. Or just use https://riot.im/develop - the continuous integration
release of the develop branch. release of the develop branch.
(Note that we don't reference the develop versions in git directly due to (Note that we don't reference the develop versions in git directly due to
https://github.com/npm/npm/issues/3055) https://github.com/npm/npm/issues/3055.)
1. Install the prerequisites: `npm install` 1. Install the prerequisites: `npm install`.
1. Configure the app by copying `config.sample.json` to `config.json` and 1. Configure the app by copying `config.sample.json` to `config.json` and
modifying it (see below for details) modifying it (see below for details).
1. `npm run dist` to build a tarball to deploy. Untaring this file will give 1. `npm run dist` to build a tarball to deploy. Untaring this file will give
a version-specific directory containing all the files that need to go on your a version-specific directory containing all the files that need to go on your
web server. web server.