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

Merge branch 'feature/new-codeception-in-smoke' into 'master'

feature(codeception): new codeception tests in smoke tests

See merge request wpdesk/gitlab-ci!155
parents 4095dc41 587a9229
No related branches found
No related tags found
No related merge requests found
......@@ -43,12 +43,14 @@
- cd ${CI_PROJECT_DIR}
- mkdir -p ${APACHE_DOCUMENT_ROOT}
- cd ${APACHE_DOCUMENT_ROOT}
- 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
- chmod a+x ${CI_PROJECT_DIR}/tests/codeception/bootstrap.sh
- if [ -f ${CI_PROJECT_DIR}/tests/codeception/bootstrap.sh ]; then wp core download ${WORDPRESS_CLI_PARAMETERS} --allow-root; fi;
- if [ -f ${CI_PROJECT_DIR}/tests/codeception/bootstrap.sh ]; then wp config create --dbhost=${MYSQL_IP} --dbname=wptest --dbuser=mysql --dbpass=mysql --allow-root; fi;
- if [ -f ${CI_PROJECT_DIR}/tests/codeception/bootstrap.sh ]; then wp config set WP_DEBUG true --raw --type=constant --allow-root; fi;
- cd ${CI_PROJECT_DIR}
- . ./tests/codeception/bootstrap.sh
- if [ -f ${CI_PROJECT_DIR}/tests/codeception/bootstrap.sh ]; then chmod a+x ./tests/codeception/bootstrap.sh; fi;
- if [ -f ${CI_PROJECT_DIR}/tests/codeception/bootstrap.sh ]; then . ./tests/codeception/bootstrap.sh; fi;
- if [ -f ${CI_PROJECT_DIR}/tests/codeception/wpdesk.yml ]; then composer prepare-wordpress-for-codeception; fi;
- if [ -f ${CI_PROJECT_DIR}/tests/codeception/wpdesk.yml ]; then composer prepare-local-codeception-tests; fi;
- if [ -d "${APACHE_DOCUMENT_ROOT}/wp-content/plugins/$CI_PROJECT_NAME" ]; then rm -r ${APACHE_DOCUMENT_ROOT}/wp-content/plugins/$CI_PROJECT_NAME; fi
- cp -r ${CI_PROJECT_DIR}/release/* ${APACHE_DOCUMENT_ROOT}/wp-content/plugins/
- mkdir -p ${CI_PROJECT_DIR}/tests/codeception/tests/_output
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment