-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Upgrade packages and tools for Travis unit testing #3262
Conversation
…ions of minimatch and graceful-fs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Great explanations!
Fix typo in almende#3262, ending `*/` of a block comment was missing. Also disabled new item `no-useless-escape` for linting, because this triggers a bit too often for comfort.
Fix typo in #3262, ending `*/` of a block comment was missing. Also disabled new item `no-useless-escape` for linting, because this triggers a bit too often for comfort.
@@ -48,21 +51,25 @@ | |||
"babel-preset-es2015": "^6.6.0", | |||
"babel-runtime": "^6.22.0", | |||
"babelify": "^7.3.0", | |||
"canvas": "^1.6.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wimrijnders What do we need this for? This module requires Cairo wich is an unacceptable external dependency. Since this I can not install vis anymore on linux 😭
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
canvas
is used to run unit tests on Network
. Why is cairo
an unacceptable external dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cairo can not be installed via npm and therefor adds a OS-specific dependency. How should the user (like me) know that he has to install g++ and libgif-dev? npm install
now just fails. I personally think this is not acceptable!
We should not have dependencies other that npm
(and maybe git
) as far as I'm concerned.
The least thing would be to document this in the README.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created an issue for that: #3515 Lets discuss over there, what the best way is to solve this.
* Add C++11 and canvas module for travis tests * Added libgif, updated version gulp-clean-css * Update version webpack * Force versions minimatch, graceful-fs; fixes for upgraded webpack * Force version minimatch through travis.yml * Fix comma's in json * Add extraneous modules to package.json; final attempt at forcing versions of minimatch and graceful-fs * Final changes module versions * Fix due to linting * Fix typo in package.json * Upgrade eslint
Fix typo in almende#3262, ending `*/` of a block comment was missing. Also disabled new item `no-useless-escape` for linting, because this triggers a bit too often for comfort.
This addresses the warnings and notifications that pop up in the job log of the
travis-cl
unit tests.This job log has been used as a starting point. The goal is to resolve all warning/error messages (Update: The goal has failed).
Compare latest job log of this PR with the previously linked job log for results.
For review, please do an
npm install
from scratch and run the unit testsIt all works on my own machine and on
travis-cl
, but YMMV due to local platform differences.Changes
canvas
module and minimal required components (libgif
). This module will be used for unit testingNetwork
andGraph3D
.packages.json
as much as possible/necessary. This required some fixes ingulpfile.js
for usage ofwebpack
.Network
due to lintingNotes
Gulp latest stable links to deprecated modules
During
npm install
the following warnings are displayed:(Also for
minimatch@0.2.14
)Both of these warnings are traceable to
gulp v3.9.1
(latest stable), which has not been updated wrt. these warnings. Try as I might, I can't force the versions. We'll just have to wait till thegulp
developers fix this.Update: The
gulp
developers are very much aware of the deprecation warnings, see for example their issue 1571. They regards this as a breaking change, and it will be fixed ingulp
version 4.Warning on
webpack
when runninggulp
With the upgraded
webpack v2.x.x
, the following notice may appear when runninggulp
:Following the link, it is explained that this is a notice to the webpack-loader developers and can be ignored by the application developers.
(it sure is ugly, though)
Warnings on installing module
fsevents
The following notification may appear:
It turns out that
fsevents
is OS-X specific, and is not required for running on other platforms. If you don't run on a Mac, you can safely ignore this message.