From b7066e9d12aecc2733d4e4846cc6759a84d0c84d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chavant?= Date: Tue, 28 Nov 2017 15:16:14 +0100 Subject: [PATCH] Change e2e tests order and frequency - Closes #1015 --- Jenkinsfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0de720210..a8dff9680 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -146,9 +146,17 @@ node('lisk-nano') { # Run end-to-end tests - npm run --silent e2e-test -- --params.baseURL file://$WORKSPACE/app/build/index.html --params.liskCoreURL https://testnet.lisk.io --cucumberOpts.tags @testnet --params.useTestnetPassphrase true - npm run --silent e2e-test -- --params.baseURL file://$WORKSPACE/app/build/index.html --params.liskCoreURL http://127.0.0.1:400$N --cucumberOpts.tags @testnet --params.useTestnetPassphrase true --params.network testnet + if [ -z $CHANGE_BRANCH ]; then + npm run --silent e2e-test -- --params.baseURL file://$WORKSPACE/app/build/index.html --params.liskCoreURL https://testnet.lisk.io --cucumberOpts.tags @testnet --params.useTestnetPassphrase true + else + echo "Skipping @testnet end-to-end tests because we're not on 'development' branch" + fi npm run --silent e2e-test -- --params.baseURL file://$WORKSPACE/app/build/index.html --params.liskCoreURL http://127.0.0.1:400$N + if [ -z $CHANGE_BRANCH ]; then + npm run --silent e2e-test -- --params.baseURL file://$WORKSPACE/app/build/index.html --cucumberOpts.tags @testnet --params.useTestnetPassphrase true --params.network testnet + else + echo "Skipping @testnet end-to-end tests because we're not on 'development' branch" + fi ''' } }