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

Feature/depenedent plugins

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