From cec6d3688e73453f25bada103b3daca4ced4aa55 Mon Sep 17 00:00:00 2001 From: isabello Date: Fri, 12 May 2017 12:35:24 +0200 Subject: [PATCH] Disable NODE_ENV variable before npm run dev --- Jenkinsfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dd3c90361..7ab5f50e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,7 @@ pipeline { steps { node('master-nano-01'){ lock(resource: "master-nano-01", inversePrecedence: true) { + deleteDir() checkout scm sh '''#!/bin/bash env @@ -27,7 +28,7 @@ pipeline { dropdb lisk_test || true createdb lisk_test psql -d lisk_test -c "alter user "$USER" with password 'password';" - cp /var/lib/jenkins/workspace/lisk-node-Linux-x86_64.tßar.gz . + cp /var/lib/jenkins/workspace/lisk-node-Linux-x86_64.tar.gz . tar -zxvf lisk-node-Linux-x86_64.tar.gz npm install git submodule init @@ -49,15 +50,18 @@ pipeline { # Add coveralls config file cp ~/.coveralls.yml-nano .coveralls.yml + # Run Build + npm run build + # Run test npm run test # Run Dev build and Build + export NODE_ENV= npm run dev &> .lisk-nano.log & - sleep 30 + sleep 20 # End to End test configuration - export CHROME_BIN=chromium-browser export DISPLAY=:99 Xvfb :99 -ac -screen 0 1024x768x24 & ./node_modules/protractor/bin/webdriver-manager update