Old test build of sao failed

22 views
Skip to first unread message

Cédric Krier

unread,
Nov 7, 2017, 6:10:09 PM11/7/17
to Tryton
Hi,

The build of sao on the old drone server is failing because of phantomjs:
https://drone-old.tryton.org/trypod.tryton.org/tryton/sao/4.4/23979d2770ba8c2d7b82f560db98ae017e208646
https://drone-old.tryton.org/trypod.tryton.org/tryton/sao/4.4/972c7d602e983e6c2d91c2179cc177abe5571394

Indeed we can see that the new version phantomjs...@2.1.16 used
'const' which is not supported by the version of node. It was working
with phantomjs...@2.1.15

Is there any one who get an idea to fix that easily?


--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Sebastien Marie

unread,
Nov 8, 2017, 3:45:06 AM11/8/17
to Tryton
On Wed, Nov 08, 2017 at 12:05:10AM +0100, Cédric Krier wrote:
> Hi,
>
> The build of sao on the old drone server is failing because of phantomjs:
> https://drone-old.tryton.org/trypod.tryton.org/tryton/sao/4.4/23979d2770ba8c2d7b82f560db98ae017e208646
> https://drone-old.tryton.org/trypod.tryton.org/tryton/sao/4.4/972c7d602e983e6c2d91c2179cc177abe5571394
>
> Indeed we can see that the new version phantomjs...@2.1.16 used
> 'const' which is not supported by the version of node. It was working
> with phantomjs...@2.1.15
>
> Is there any one who get an idea to fix that easily?
>

I am not a user of node, so it may be just partial elements... according
to https://stackoverflow.com/questions/22603078/syntaxerror-use-of-const-in-strict-mode :

"const" is part of ECMAScript 2015 that could be enable in
node 0.10 or 0.12 with --harmony flag.

I dunno if it is possible to ask npm to pass specific flag to node ?
--
Sebastien Marie

Cédric Krier

unread,
Nov 8, 2017, 6:25:08 PM11/8/17
to Tryton
I could not find how to pass this flag.
So I created https://bugs.tryton.org/issue6924 to fix the version of
phantomjs-prebuilt.

Axel Braun

unread,
Nov 11, 2017, 11:57:41 AM11/11/17
to tryton-dev
Coincidente... I installed sao today and ran into the issue of missing phantomjs as well. Finally it installed, but does not work properly.

I saw one other message during installation:
npm WARN deprecated bo...@1.8.2: ...psst! Your project can stop working at any moment be cause its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/

Is this planned?

Cédric Krier

unread,
Nov 11, 2017, 12:35:05 PM11/11/17
to tryton-dev
On 2017-11-11 08:57, Axel Braun wrote:
> I saw one other message during installation:
> npm WARN deprecated bo...@1.8.2: ...psst! Your project can stop working at any moment be cause its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
>
> Is this planned?

I think we should go for browserify like I do for Ceryx.
Reply all
Reply to author
Forward
0 new messages