From ed9c245cb1e683957c5854ba4ef60d62a7acf51e Mon Sep 17 00:00:00 2001 From: Grzegorz Rola <grola@seostudio.pl> Date: Sun, 12 Jan 2020 22:52:36 +0100 Subject: [PATCH] Codeception params --- gitlab-ci-1.2.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gitlab-ci-1.2.yml b/gitlab-ci-1.2.yml index 480c42c..798a0ec 100644 --- a/gitlab-ci-1.2.yml +++ b/gitlab-ci-1.2.yml @@ -438,15 +438,13 @@ library: - wp core download ${WORDPRESS_CLI_PARAMETERS} --allow-root - wp config create --dbhost=${MYSQL_IP} --dbname=wptest --dbuser=mysql --dbpass=mysql --allow-root - wp config set WP_DEBUG true --raw --type=constant --allow-root - - touch ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log - - chmod o+w ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log - - chmod g+w ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log + - rm ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log + - chmod o+w ${APACHE_DOCUMENT_ROOT}/wp-content + - chmod g+w ${APACHE_DOCUMENT_ROOT}/wp-content - cp -r /tmp/project/. ${APACHE_DOCUMENT_ROOT}/wp-content/plugins/${CI_PROJECT_NAME} - chmod a+x ${CI_PROJECT_DIR}/tests/codeception/bootstrap.sh - cd ${CI_PROJECT_DIR} - . ./tests/codeception/bootstrap.sh - - wp config set WP_DEBUG_DISPLAY false --raw --type=constant --allow-root --path=$APACHE_DOCUMENT_ROOT - - wp config set WP_DEBUG_LOG $APACHE_DOCUMENT_ROOT/wp-content/uploads/debug.log --raw --type=constant --allow-root --path=$APACHE_DOCUMENT_ROOT - mkdir -p ${CI_PROJECT_DIR}/tests/codeception/tests/_output - mkdir -p ${CI_PROJECT_DIR}/tests/codeception/tests/acceptance - mkdir -p ${CI_PROJECT_DIR}/tests/codeception/tests/functional -- GitLab