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

Commit

Permalink
Merge pull request #206 from LiskHQ/205-SCM_Checkout
Browse files Browse the repository at this point in the history
Correct Jenkinsfile checkout issue - Closes #205
  • Loading branch information
karmacoma authored May 11, 2017
2 parents e558a4e + 53c7a86 commit abb27f4
Showing 1 changed file with 68 additions and 68 deletions.
136 changes: 68 additions & 68 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,78 +1,78 @@
pipeline {
agent none
environment {
ON_JENKINS = 'TRUE'
}
stages {
stage ('Lisk Provisioning') {
steps {
node('master-nano-01'){
lock(resource: "master-nano-01", inversePrecedence: true) {
sh '''#!/bin/bash
env
agent none
environment {
ON_JENKINS = 'TRUE'
}
stages {
stage ('Lisk Provisioning') {
steps {
node('master-nano-01'){
lock(resource: "master-nano-01", inversePrecedence: true) {
checkout scm
sh '''#!/bin/bash
env
# Clean up old processes
pkill -f selenium -9 || true
pkill -f Xvfb -9 || true
rm -rf /tmp/.X0-lock || true
pkill -f app.js || true
pkill -f webpack-dev-server -9 || true
# Clean up old processes
pkill -f selenium -9 || true
pkill -f Xvfb -9 || true
rm -rf /tmp/.X0-lock || true
pkill -f app.js || true
pkill -f webpack-dev-server -9 || true
# Start lisk and make sure its current
cd /var/lib/jenkins/workspace/
git clone https://github.com/LiskHQ/lisk.git
cd /var/lib/jenkins/workspace/lisk
git checkout development
git pull
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 .
tar -zxvf lisk-node-Linux-x86_64.tar.gz
npm install
git submodule init
git submodule update
cd public
npm install
bower install
grunt release
cd ..
cd test/lisk-js/; npm install; cd ../..
cp test/config.json test/genesisBlock.json .
export NODE_ENV=test
BUILD_ID=dontKillMe ~/start_lisk.sh
# Start lisk and make sure its current
cd /var/lib/jenkins/workspace/
git clone https://github.com/LiskHQ/lisk.git
cd /var/lib/jenkins/workspace/lisk
git checkout development
git pull
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.tar.gz .
tar -zxvf lisk-node-Linux-x86_64.tar.gz
npm install
git submodule init
git submodule update
cd public
npm install
bower install
grunt release
cd ..
cd test/lisk-js/; npm install; cd ../..
cp test/config.json test/genesisBlock.json .
export NODE_ENV=test
BUILD_ID=dontKillMe ~/start_lisk.sh
# Build nano
cd $WORKSPACE/src
npm install
# Build nano
cd $WORKSPACE/src
npm install
# Add coveralls config file
cp ~/.coveralls.yml-nano .coveralls.yml
# Add coveralls config file
cp ~/.coveralls.yml-nano .coveralls.yml
# Prepare lisk core for testing
bash ~/tx.sh
# Prepare lisk core for testing
bash ~/tx.sh
# Run test
npm run test
# Run test
npm run test
# Commented until e2e is ready
# export CHROME_BIN=chromium-browser
# export DISPLAY=:0.0
# Xvfb :0 -ac -screen 0 1280x1024x24 &
# ./node_modules/protractor/bin/webdriver-manager update
# npm run e2e-test
# Commented until e2e is ready
# export CHROME_BIN=chromium-browser
# export DISPLAY=:0.0
# Xvfb :0 -ac -screen 0 1280x1024x24 &
# ./node_modules/protractor/bin/webdriver-manager update
# npm run e2e-test
# Commented until e2e is ready
# cat .protractor.log
# cat .lisk-nano.log
# Commented until e2e is ready
# cat .protractor.log
# cat .lisk-nano.log
pkill -f app.js -9 || true
pkill -f webpack-dev-server -9 || true
'''
milestone 1
}
}
}
}
}
pkill -f app.js -9 || true
pkill -f webpack-dev-server -9 || true
'''
milestone 1
}
}
}
}
}
}

0 comments on commit abb27f4

Please sign in to comment.