fix travis once more, this time due to jsdom breaking compatibility with nodeJS < 6
This commit is contained in:
parent
9f01ccc80e
commit
5c3e2b3fae
|
@ -15,7 +15,7 @@ before_script:
|
||||||
- composer install -n
|
- composer install -n
|
||||||
- npm install -g mocha
|
- npm install -g mocha
|
||||||
- cd js
|
- cd js
|
||||||
- npm install jsverify jsdom jsdom-global
|
- npm install jsverify jsdom@9 jsdom-global@2
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -51,7 +51,7 @@ and jsdom-global locally:
|
||||||
```console
|
```console
|
||||||
$ npm install -g mocha istanbul
|
$ npm install -g mocha istanbul
|
||||||
$ cd PrivateBin/js
|
$ cd PrivateBin/js
|
||||||
$ npm install jsverify jsdom jsdom-global
|
$ npm install jsverify jsdom@9 jsdom-global@2
|
||||||
```
|
```
|
||||||
|
|
||||||
Example for Debian and Ubuntu, including steps to allow the current user to
|
Example for Debian and Ubuntu, including steps to allow the current user to
|
||||||
|
@ -63,9 +63,12 @@ $ sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
|
||||||
$ ln -s /usr/bin/nodejs /usr/local/bin/node
|
$ ln -s /usr/bin/nodejs /usr/local/bin/node
|
||||||
$ npm install -g mocha istanbul
|
$ npm install -g mocha istanbul
|
||||||
$ cd PrivateBin/js
|
$ cd PrivateBin/js
|
||||||
$ npm install jsverify jsdom jsdom-global
|
$ npm install jsverify jsdom@9 jsdom-global@2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note: If you use a distribution that provides nodeJS >= 6, then you can install
|
||||||
|
the latest jsdom and jsdom-global packages and don't need to use @9 and @2.
|
||||||
|
|
||||||
To run the tests, just change into the `js` directory and run istanbul:
|
To run the tests, just change into the `js` directory and run istanbul:
|
||||||
```console
|
```console
|
||||||
$ cd PrivateBin/js
|
$ cd PrivateBin/js
|
||||||
|
|
Loading…
Reference in New Issue