Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Disable NODE_ENV variable before npm run dev
Browse files Browse the repository at this point in the history
  • Loading branch information
isabello authored and slaweet committed May 15, 2017
1 parent a8c1a29 commit cec6d36
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pipeline {
steps {
node('master-nano-01'){
lock(resource: "master-nano-01", inversePrecedence: true) {
deleteDir()
checkout scm
sh '''#!/bin/bash
env
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cec6d36

Please sign in to comment.