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

Commit

Permalink
Enable e2e tests in Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
isabello authored and slaweet committed May 15, 2017
1 parent 416c362 commit 5f3c1da
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,30 @@ pipeline {
# Add coveralls config file
cp ~/.coveralls.yml-nano .coveralls.yml
# Prepare lisk core for testing
bash ~/tx.sh
# 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
# Run Dev build and Build
npm run dev &> .lisk-nano.log &
sleep 30
# Commented until e2e is ready
# cat .protractor.log
# cat .lisk-nano.log
# 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
./node_modules/protractor/bin/webdriver-manager start &
# Prepare lisk core for testing
bash ~/tx.sh
pkill -f app.js -9 || true
# Run End to End Tests
npm run e2e-test
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
'''
milestone 1
Expand Down

0 comments on commit 5f3c1da

Please sign in to comment.