Skip to content

Commit f231dcf

Browse files
author
Patrick Meenan
committed
Updated to node 12
1 parent 87b8f0d commit f231dcf

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN apt-get update && \
2626
iproute2 \
2727
software-properties-common && \
2828
# Node setup
29-
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && \
29+
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - && \
3030
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
3131
wget -qO- https://deb.opera.com/archive.key | apt-key add - && \
3232
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && \

docs/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ wptagent currently supports Windows, Linux and OSX for desktop browsers as well
4949
## For lighthouse testing
5050
* NodeJS
5151
* Ubuntu/Debian:
52-
* ```curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -```
52+
* ```curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -```
5353
* ```sudo apt-get install -y nodejs```
5454
* The lighthouse npm module
5555
* ```sudo npm install -g lighthouse```

ubuntu_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ until sudo apt-get update
33
do
44
sleep 1
55
done
6-
until sudo apt-get install -y python2.7 python-pip imagemagick ffmpeg xvfb dbus-x11 cgroup-tools traceroute software-properties-common psmisc libnss3-tools iproute2 net-tools git
6+
until sudo apt-get install -y python2.7 python-pip imagemagick ffmpeg xvfb dbus-x11 cgroup-tools traceroute software-properties-common psmisc libnss3-tools iproute2 net-tools git curl
77
do
88
sleep 1
99
done
@@ -15,7 +15,7 @@ do
1515
sleep 1
1616
done
1717
sudo pip install 'fonttools>=3.44.0,<4.0.0'
18-
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
18+
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
1919
until sudo apt-get install -y nodejs
2020
do
2121
sleep 1

wptagent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ def startup(self):
403403
if self.get_node_version() < 10.0:
404404
if platform.system() == "Linux":
405405
# This only works on debian-based systems
406-
logging.debug('Updating Node.js to 10.x')
407-
subprocess.call('curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -',
406+
logging.debug('Updating Node.js to 12.x')
407+
subprocess.call('curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -',
408408
shell=True)
409409
subprocess.call(['sudo', 'apt-get', 'install', '-y', 'nodejs'])
410410
if self.get_node_version() < 10.0:

0 commit comments

Comments
 (0)