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

Merge branch 'feature/depenedent-plugins' into 'master'

Feature/depenedent plugins

See merge request wpdesk/gitlab-ci!74
parents b4c02ee2 b93a57d2
No related branches found
No related tags found
No related merge requests found
......@@ -37,13 +37,13 @@ stages:
services:
- mysql:5.6
before_script:
- export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
- echo ${WPDESK_CI_VERSION}
- ls -l
- php --version
- cat /tmp/wordpress-develop/src/wp-includes/version.php
- cat /tmp/woocommerce/woocommerce.php
- COMPOSER_MEMORY_LIMIT=-1 composer install --no-progress --prefer-dist
- if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
- ln -s $CI_PROJECT_DIR /tmp/wordpress-develop/src/wp-content/plugins/$CI_PROJECT_NAME
script:
- vendor/bin/phpunit -d memory_limit=-1 --configuration phpunit-integration.xml --coverage-text --colors=never --log-junit tmp_artifacts/report.xml
......@@ -125,11 +125,17 @@ prepare prefixed vendor:
name: "vendor_prefixed"
paths:
- vendor_prefixed
- tests/dependent_plugins
script:
- export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
- echo ${DEPENDENT_PLUGINS_DIR}
- echo ${WPDESK_CI_VERSION}
- php --version
- ls -l
- COMPOSER_MEMORY_LIMIT=-1 && php -d memory_limit=-1 /usr/local/bin/composer install
- mkdir -p ${DEPENDENT_PLUGINS_DIR}
- if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
- if [[ -f tests/codeception/prepare.sh ]]; then sh tests/codeception/prepare.sh; fi
except:
variables:
- $IS_LIBRARY
......@@ -235,6 +241,7 @@ integration test current woocommerce:
image: wpdesknet/phpunit-woocommerce:0-0
allow_failure: true
before_script:
- export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
- cd ${CI_PROJECT_DIR}
- mkdir -p .tmp
- cd .tmp
......@@ -246,7 +253,6 @@ integration test current woocommerce:
- cat /tmp/woocommerce/woocommerce.php
- cd ${CI_PROJECT_DIR}
- COMPOSER_MEMORY_LIMIT=-1 composer install --no-progress --prefer-dist
- if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
- ln -s $CI_PROJECT_DIR /tmp/wordpress-develop/src/wp-content/plugins/$CI_PROJECT_NAME
except:
variables:
......@@ -417,6 +423,7 @@ library:
- $DISABLE_CODECEPTION
allow_failure: false
before_script:
- export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
- mkdir -p /cache/wp-cli
- export MYSQL_IP=$(awk '/^[[:space:]]*($|#)/{next} /mysqltests/{print $1; exit}' /etc/hosts)
- export WOOTESTS_IP=$(awk '/^[[:space:]]*($|#)/{next} /wootests/{print $1; exit}' /etc/hosts)
......@@ -434,7 +441,6 @@ library:
- 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}
- if [[ -f tests/codeception/prepare.sh ]]; then sh tests/codeception/prepare.sh; fi
- cd ${CI_PROJECT_DIR}
- . ./tests/codeception/bootstrap.sh
- 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