Skip to content

Commit 469bb8f

Browse files
authored
Merge pull request element-hq#4079 from vector-im/rav/node_versions
Make travis run the build with several versions of node
2 parents 60a56d0 + 33b95d4 commit 469bb8f

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

‎.travis.yml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
language: node_js
22
node_js:
3-
- 6 # node v6, to match jenkins
3+
# make sure we work with a range of node versions.
4+
# As of the time of writing:
5+
# - 4.x is still in LTS (until April 2018), but some of our deps (notably
6+
# extract-zip) don't work with it
7+
# - 5.x has been EOLed for nearly a year.
8+
# - 6.x is the current 'LTS' version
9+
# - 7.x is the current 'current' version (until October 2017)
10+
#
11+
# see: https://github.com/nodejs/LTS/
12+
- 6.0
13+
- 6
14+
- 7
415
install:
516
- scripts/fetch-develop.deps.sh
617
- npm install

‎README.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,18 @@ Building From Source
5555
Riot is a modular webapp built with modern ES6 and requires a npm build system
5656
to build.
5757

58-
1. Install or update `node.js` so that your `npm` is at least at version `2.0.0`
59-
1. Clone the repo: `git clone https://github.com/vector-im/riot-web.git`
60-
1. Switch to the riot-web directory: `cd riot-web`
58+
1. Install or update `node.js` so that your `node` is at least v6.0.0 (and `npm`
59+
is at least v3.8.6).
60+
1. Clone the repo: `git clone https://github.com/vector-im/riot-web.git`.
61+
1. Switch to the riot-web directory: `cd riot-web`.
6162
1. If you're using the `develop` branch, install the develop versions of the
6263
dependencies, as the released ones will be too old:
6364
```
6465
scripts/fetch-develop-deps.sh
6566
```
6667
Whenever you git pull on riot-web you will also probably need to force an update
6768
to these dependencies - the simplest way is to re-run the script, but you can also
68-
manually update and reuild them:
69+
manually update and rebuild them:
6970
```
7071
cd matrix-js-sdk
7172
git pull
@@ -85,10 +86,10 @@ to build.
8586
up-to-date. Or just use https://riot.im/develop - the continuous integration
8687
release of the develop branch.
8788
(Note that we don't reference the develop versions in git directly due to
88-
https://github.com/npm/npm/issues/3055)
89-
1. Install the prerequisites: `npm install`
89+
https://github.com/npm/npm/issues/3055.)
90+
1. Install the prerequisites: `npm install`.
9091
1. Configure the app by copying `config.sample.json` to `config.json` and
91-
modifying it (see below for details)
92+
modifying it (see below for details).
9293
1. `npm run dist` to build a tarball to deploy. Untaring this file will give
9394
a version-specific directory containing all the files that need to go on your
9495
web server.

0 commit comments

Comments
 (0)