-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·26 lines (22 loc) · 965 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
# This script does not work on MacOS
rm -rf target || true
cp -R e2e target
echo "### changing permissions on cypress test dir ###"
umask 002
# gid 50 is staff!
chgrp -R staff target || true
chmod g+s target || true
chmod -R g+w target || true
if [[ ! -z "$BUILD_NUMBER" ]]; then
export IMAGE=docker-metascrum.artifacts.dbccloud.dk/merkur-frontend:${BRANCH_NAME}-${BUILD_NUMBER}
else
export IMAGE=docker-metascrum.artifacts.dbccloud.dk/merkur-frontend:devel
fi
export CYPRESS_IMAGE=docker-dbc.artifacts.dbccloud.dk/cypress:old-202228
docker pull ${CYPRESS_IMAGE}
docker-compose -f docker-compose-cypress.yml -p compose-${IMAGE} up -d wiremock
docker-compose -f docker-compose-cypress.yml -p compose-${IMAGE} up -d web
docker-compose -f docker-compose-cypress.yml -p compose-${IMAGE} run e2e
docker-compose -f docker-compose-cypress.yml -p compose-${IMAGE} stop
docker-compose -f docker-compose-cypress.yml -p compose-${IMAGE} rm --force