Skip to content
Snippets Groups Projects
Commit ed9c245c authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Codeception params

parent a5721be4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment