Commit 184eabda authored by bensinober's avatar bensinober
Browse files

DEICH-3594 koha-api-test: deactivate gitlab job for now

parent a11b370b
......@@ -422,19 +422,25 @@
# - ./transitionIssues.sh stage
- *after
#Automated tests
koha-api-tests:
stage: sanity
extends:
- .devtest
variables:
DEVTEST_KOHA_DB: "koha-db"
DEVTEST_KOHA_API: "${DEVTEST_KOHA_API}"
#CMD: "'mysql -u $MYSQL_USER -p$MYSQL_PASSWORD koha_deichman' < /opt/deichman/deployment-config/koha/fixtures/cleanup.sql"
APPLICATION_NAME: koha
only:
changes: [ "Makefile", ".gitlab-ci.yml", "*.sh", "koha/**/*"]
tags:
- koha
#before_script: # ensure clean slate
# - make remote-docker-command ssh_user=${SSH_USER} ssh_server="${SSH_SERVERS}" CONTAINER=${DEVTEST_KOHA_DB} cmd="${cmd}"
script:
- cd koha/tests
- ./run_tests.sh
stage: sanity
#- ./run_tests.sh
when: on_success
e2e-tests:
......
......@@ -2,8 +2,7 @@
# run_tests.sh
docker build -f Dockerfile.tavern -t tavern .
echo "Ensure clear slate..."
docker exec -i deichman_koha-db_1 bash -c 'mysql -u $MYSQL_USER -p$MYSQL_PASSWORD koha_deichman' < ./fixtures/cleanup.sql
if [[ -v DEVTEST_KOHA_API ]]; then
echo "Running tests against ${DEVTEST_KOHA_API}..."
docker run --rm -e KOHA_API="${DEVTEST_KOHA_API}" -v "$(pwd)/:/tests/" tavern:latest py.test /tests
......@@ -11,11 +10,13 @@ elif [[ -v KOHA_API ]]; then
echo "Running tests against ${KOHA_API}..."
docker run --rm -e KOHA_API="${KOHA_API}" -v "$(pwd)/:/tests/" tavern:latest py.test /tests
else
echo "Ensure clear slate..."
docker exec -i deichman_koha-db_1 bash -c 'mysql -u $MYSQL_USER -p$MYSQL_PASSWORD koha_deichman' < ./fixtures/cleanup.sql
echo "Running tests against localhost ..."
docker run --rm --net=deichman-dev -v "$(pwd)/:/tests/" tavern:latest py.test /tests
echo "Cleaning up..."
docker exec -i deichman_koha-db_1 bash -c 'mysql -u $MYSQL_USER -p$MYSQL_PASSWORD koha_deichman' < ./fixtures/cleanup.sql
fi
RES=$?
echo "Cleaning up..."
docker exec -i deichman_koha-db_1 bash -c 'mysql -u $MYSQL_USER -p$MYSQL_PASSWORD koha_deichman' < ./fixtures/cleanup.sql
exit ${RES}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment