Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-basic-requirements
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-basic-requirements
Commits
8eefd9e7
Commit
8eefd9e7
authored
7 years ago
by
dyszczo
Browse files
Options
Downloads
Patches
Plain Diff
Common project files update
parent
f3d91c22
No related branches found
No related tags found
No related merge requests found
Pipeline
#7596
passed with warnings
7 years ago
Stage: tools
Stage: tests
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+82
-1
82 additions, 1 deletion
.gitlab-ci.yml
.gitlab/issue_templates/Bug.md
+32
-0
32 additions, 0 deletions
.gitlab/issue_templates/Bug.md
with
114 additions
and
1 deletion
.gitlab-ci.yml
+
82
−
1
View file @
8eefd9e7
variables
:
WPDESK_CI_VERSION
:
1.10.1
6
WPDESK_CI_VERSION
:
1.10.1
8
MYSQL_ROOT_PASSWORD
:
mysql
MYSQL_DATABASE
:
wptest
MYSQL_USER
:
mysql
...
...
@@ -8,8 +8,10 @@ variables:
PHP_ERROR_REPORTING
:
E_ALL
COMPOSER_ALLOW_SUPERUSER
:
1
GIT_STRATEGY
:
fetch
ACCEPTANCE_ERROR_PATH
:
${CI_PROJECT_DIR}/acceptance
stages
:
-
tools
-
tests
-
pre-deploy
-
deploy
...
...
@@ -91,6 +93,34 @@ stages:
before_script
:
-
cd ${CI_PROJECT_DIR}
phpmetric metrics
:
stage
:
tools
image
:
wpdesknet/phpunit-woocommerce:0-0
allow_failure
:
true
when
:
manual
artifacts
:
when
:
always
expire_in
:
1 month
name
:
"
metrics"
paths
:
-
${CI_PROJECT_DIR}/phpmetric
script
:
-
echo ${WPDESK_CI_VERSION}
-
composer require phpmetrics/phpmetrics
-
composer update --no-progress
-
php ./vendor/bin/phpmetrics --report-html=phpmetric .
churn metrics
:
stage
:
tools
image
:
wpdesknet/phpunit-woocommerce:0-0
allow_failure
:
true
when
:
manual
script
:
-
echo ${WPDESK_CI_VERSION}
-
composer require bmitch/churn-php
-
composer update --no-progress
-
vendor/bin/churn run classes inc
code style test
:
stage
:
tests
image
:
wpdesknet/phpunit-woocommerce:0-0
...
...
@@ -136,6 +166,57 @@ integration test php5-5:
<<
:
*job-test-integration-template-fast
image
:
wpdesknet/phpunit-woocommerce:4-0
integration test current woocommerce
:
<<
:
*job-test-integration-template-fast
image
:
wpdesknet/phpunit-woocommerce:0-0
allow_failure
:
true
before_script
:
-
cd /tmp
-
rm -rf woocommerce
-
git clone https://github.com/woocommerce/woocommerce.git
-
cd ${CI_PROJECT_DIR}
acceptance test
:
image
:
wpdesknet/node
variables
:
CI_DEBUG_SERVICES
:
trace
services
:
-
name
:
mysql:5.6
alias
:
mysqltests
-
name
:
wpdesknet/apache-woocommerce:latest
alias
:
wootests
-
name
:
selenium/standalone-chrome
alias
:
selenium
artifacts
:
when
:
always
expire_in
:
1 day
name
:
"
error
logs"
paths
:
-
${CI_PROJECT_DIR}/acceptance
stage
:
tests
allow_failure
:
true
script
:
-
cd ${CI_PROJECT_DIR}
-
composer update --no-progress --no-dev
-
if [[ -f ${CI_PROJECT_DIR}/tests/acceptance/prepare.sh ]]; then sh ${CI_PROJECT_DIR}/tests/acceptance/prepare.sh; fi
-
export MYSQL_IP=$(awk '/^[[:space:]]*($|#)/{next} /mysqltests/{print $1; exit}' /etc/hosts)
-
export WOOTESTS_IP=$(awk '/^[[:space:]]*($|#)/{next} /wootests/{print $1; exit}' /etc/hosts)
-
echo "http://wootests/wpdesk_init.php?mysql_ip=${MYSQL_IP}&wootests_ip=${WOOTESTS_IP}"
-
wget -O /tmp/wpdesk_init.txt "http://wootests/wpdesk_init.php?mysql_ip=${MYSQL_IP}&wootests_ip=${WOOTESTS_IP}"
-
tail -50 /tmp/wpdesk_init.txt
-
sh /tmp/clone.sh git@gitlab.com:wpdesk/plugins-tests.git /tmp/tests headless
-
cd /tmp/tests
-
npm install
-
npm install -g grunt-cli
-
cd node_modules/.bin
-
./webdriver-manager update
-
cd ../
-
mkdir -p ${CI_PROJECT_DIR}/acceptance/reports/html/screenshot
-
grunt chrome-${CI_PROJECT_NAME}
apigen docs
:
image
:
name
:
wpdesknet/apigen
...
...
This diff is collapsed.
Click to expand it.
.gitlab/issue_templates/Bug.md
0 → 100644
+
32
−
0
View file @
8eefd9e7
### Select WooCommerce version e.g: [x] 2.6
<!--- Select the WooCommerce version on which the error occurred -->
-
[
] [2.6
](
http://woo26.tests.wpdesk.org
)
-
[
] [2.7
](
http://woo27.tests.wpdesk.org
)
-
[
] [3.0
](
http://woo30.tests.wpdesk.org
)
-
[
] [3.1
](
http://woo31.tests.wpdesk.org
)
-
[
] [3.2
](
http://woo32.tests.wpdesk.org
)
-
[
] [3.3
](
http://woo33.tests.wpdesk.org
)
-
[
] [3.4
](
http://woo34.tests.wpdesk.org
)
-
[
] [Stable
](
https://stable.wpdesk.org/
)
### Select PHP version e.g: [x] 5.6
<!--- Select the PHP version on which the error occurred -->
-
[ ] 5.3
-
[ ] 5.5
-
[ ] 5.6
-
[ ] 7.1
-
[ ] 7.2
## Steps to Reproduce
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
1.
2.
## Expected Behavior
<!--- Tell what should happen -->
1.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment