From 287ba98c17824babc4238b39d4c87b6ecd1e9c00 Mon Sep 17 00:00:00 2001 From: razvanMiu Date: Fri, 8 Jan 2021 11:20:35 +0200 Subject: [PATCH] Install cypress --- Jenkinsfile | 2 +- entrypoint-prod.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 85431e00..c65242d3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ pipeline { node(label: 'docker-host') { script { checkout scm - if (env.BRANCH_NAME == 'master') { + if (env.BRANCH_NAME == 'test') { tagName = 'latest' } else { tagName = "$BRANCH_NAME" diff --git a/entrypoint-prod.sh b/entrypoint-prod.sh index f307b20d..ac636dec 100755 --- a/entrypoint-prod.sh +++ b/entrypoint-prod.sh @@ -62,7 +62,7 @@ if [[ "$1" == "cypress"* ]]; then RAZZLE_API_PATH=$RAZZLE_API_PATH yarn start & cd /opt/frontend - exec bash -c "wait-on -t $TIMEOUT http://localhost:3000 && NODE_ENV=production CYPRESS_API_PATH=$CYPRESS_API_PATH ./node_modules/cypress/bin/cypress run" + exec bash -c "wait-on -t $TIMEOUT http://localhost:3000 && NODE_ENV=production CYPRESS_API_PATH=$CYPRESS_API_PATH ./node_modules/cypress/bin/cypress install" exec bash -c "wait-on -t $TIMEOUT http://localhost:3000 && NODE_ENV=production CYPRESS_API_PATH=$CYPRESS_API_PATH ./node_modules/cypress/bin/cypress run" fi