Skip to content
Snippets Groups Projects
Commit 28f8465b authored by David Hoksza's avatar David Hoksza
Browse files

phantom-js installation

parent 7db940cc
No related branches found
No related tags found
No related merge requests found
Pipeline #42616 failed
......@@ -51,6 +51,15 @@ test:
- chown root:root /usr/bin/chromedriver
- chmod +x /usr/bin/chromedriver
- PLUGIN_DIR=`pwd`
- cd /usr/local/share
- wget https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-linux-x86_64.tar.bz2
- tar xjf phantomjs-1.9.8-linux-x86_64.tar.bz2
- ln -s /usr/local/share/phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
- ln -s /usr/local/share/phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
- ln -s /usr/local/share/phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
- cd ${PLUGIN_DIR}
- npm install
- npm run build
- mkdir /usr/local/tomcat/webapps/test
......@@ -59,7 +68,7 @@ test:
- PLUGIN_MD5=($(md5sum dist/plugin.js))
- echo $PLUGIN_FILE $PLUGIN_MD5
- PLUGIN_DIR=`pwd`
- mkdir /etc/minerva/
- mkdir /etc/minerva/test
......
......@@ -2,12 +2,14 @@
rm -r node_modules
#The following installation of phantom.js is required because there is some sort of error in new node-sass and node installation of phantom.js fails.
# Some node version seem to capture that problem and do the following themselves, but don't and error in phantom.js installation results
# in failing of the build step of the CI/CD.
PLUGIN_DIR=`pwd`
cd /usr/local/share
sudo wget https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-linux-x86_64.tar.bz2
sudo tar xjf phantomjs-1.9.8-linux-x86_64.tar.bz2
PATH=/plugin/phantomjs-1.9.8-linux-x86_64/bin/:$PATH
sudo ln -s /usr/local/share/phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
sudo ln -s /usr/local/share/phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
cd ${PLUGIN_DIR}
npm install
npm run build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment