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
b132d224
There was a problem fetching the pipeline summary.
Commit
b132d224
authored
7 years ago
by
dyszczo
Browse files
Options
Downloads
Plain Diff
Merge branch 'devel'
parents
6491f5ff
12419b74
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+229
-0
229 additions, 0 deletions
.gitlab-ci.yml
src/Plugin/Has_Plugin_Info.php
+1
-1
1 addition, 1 deletion
src/Plugin/Has_Plugin_Info.php
src/Plugin/Plugin_Info.php
+2
-2
2 additions, 2 deletions
src/Plugin/Plugin_Info.php
with
232 additions
and
3 deletions
.gitlab-ci.yml
0 → 100644
+
229
−
0
View file @
b132d224
variables
:
WPDESK_CI_VERSION
:
1.10.16
MYSQL_ROOT_PASSWORD
:
mysql
MYSQL_DATABASE
:
wptest
MYSQL_USER
:
mysql
MYSQL_PASSWORD
:
mysql
MYSQL_INNODB_LOG_BUFFER_SIZE
:
32M
PHP_ERROR_REPORTING
:
E_ALL
COMPOSER_ALLOW_SUPERUSER
:
1
GIT_STRATEGY
:
fetch
stages
:
-
tests
-
pre-deploy
-
deploy
.template
:
&job-test-template
stage
:
tests
coverage
:
'
/^\s*Lines:\s*\d+.\d+\%/'
.template
:
&job-test-integration-template
<<
:
*job-test-template
services
:
-
mysql:5.6
script
:
-
echo ${WPDESK_CI_VERSION}
-
ls -l
-
php --version
-
cat /tmp/wordpress-develop/src/wp-includes/version.php
-
cat /tmp/woocommerce/woocommerce.php
-
composer update --no-progress
-
if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
-
vendor/bin/phpunit --configuration phpunit-integration.xml --coverage-text --colors=never
only
:
-
tags
.template
:
&job-test-integration-template-fast
<<
:
*job-test-integration-template
script
:
-
echo ${WPDESK_CI_VERSION}
-
ls -l
-
php --version
-
cat /tmp/wordpress-develop/src/wp-includes/version.php
-
cat /tmp/woocommerce/woocommerce.php
-
composer update --no-progress
-
if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
-
vendor/bin/phpunit --configuration phpunit-integration.xml --no-coverage
except
:
-
tags
only
:
.template
:
&job-test-unit-template
<<
:
*job-test-template
script
:
-
echo ${WPDESK_CI_VERSION}
-
ls -l
-
php --version
-
cat /tmp/wordpress-develop/src/wp-includes/version.php
-
cat /tmp/woocommerce/woocommerce.php
-
composer update --no-progress
-
vendor/bin/phpunit --configuration phpunit-unit.xml --coverage-text --colors=never
only
:
-
tags
.template
:
&job-test-unit-template-fast
<<
:
*job-test-unit-template
script
:
-
echo ${WPDESK_CI_VERSION}
-
ls -l
-
php --version
-
cat /tmp/wordpress-develop/src/wp-includes/version.php
-
cat /tmp/woocommerce/woocommerce.php
-
composer update --no-progress
-
vendor/bin/phpunit --configuration phpunit-unit.xml --no-coverage
except
:
-
tags
only
:
.template
:
&job-deploy-template
image
:
wpdesknet/amazon-svn-deploy
stage
:
deploy
dependencies
:
-
build to deploy
-
unit test lastest coverage
-
integration test lastest coverage
retry
:
2
when
:
manual
only
:
-
tags
before_script
:
-
cd ${CI_PROJECT_DIR}
code style test
:
stage
:
tests
image
:
wpdesknet/phpunit-woocommerce:0-0
allow_failure
:
true
script
:
-
echo ${WPDESK_CI_VERSION}
-
composer update --no-progress
-
vendor/bin/phpcs
unit test lastest
:
<<
:
*job-test-unit-template-fast
image
:
wpdesknet/phpunit-woocommerce:0-0
integration test lastest
:
<<
:
*job-test-integration-template-fast
image
:
wpdesknet/phpunit-woocommerce:0-0
unit test lastest coverage
:
<<
:
*job-test-unit-template
image
:
wpdesknet/phpunit-woocommerce:0-0
integration test lastest coverage
:
<<
:
*job-test-integration-template
image
:
wpdesknet/phpunit-woocommerce:0-0
integration test php7-1 wc-1
:
<<
:
*job-test-integration-template-fast
image
:
wpdesknet/phpunit-woocommerce:1-1
integration test php7 wc-2
:
<<
:
*job-test-integration-template-fast
image
:
wpdesknet/phpunit-woocommerce:2-2
integration test php-7 wc-3
:
<<
:
*job-test-integration-template-fast
image
:
wpdesknet/phpunit-woocommerce:2-3
integration test php5-6
:
<<
:
*job-test-integration-template-fast
image
:
wpdesknet/phpunit-woocommerce:3-0
integration test php5-5
:
<<
:
*job-test-integration-template-fast
image
:
wpdesknet/phpunit-woocommerce:4-0
apigen docs
:
image
:
name
:
wpdesknet/apigen
stage
:
pre-deploy
artifacts
:
expire_in
:
1 day
name
:
"
docs"
paths
:
-
docs/
script
:
-
echo ${WPDESK_CI_VERSION}
-
ls -l
-
/app/vendor/bin/apigen generate
-
php /app/hooks-docs.php ${CI_PROJECT_DIR}
only
:
-
tags
pages
:
stage
:
deploy
dependencies
:
-
apigen docs
script
:
-
rm -rf public
-
mv docs/ public/
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Dokumentacja
projektu
${CI_PROJECT_NAME}
w
wersji
${CI_COMMIT_REF_NAME}
umieszczona
w
<https://gitlab.com/wpdesk/${CI_PROJECT_NAME}/pages|pages>
\",
}"
https://hooks.slack.com/services/${SLACK_AUTH}'
artifacts
:
expire_in
:
1 day
paths
:
-
public
only
:
-
tags
build to deploy
:
image
:
wpdesknet/phpunit-woocommerce:4-0
stage
:
pre-deploy
artifacts
:
expire_in
:
1 month
name
:
"
production
release"
paths
:
-
release
-
release.zip
script
:
-
echo ${WPDESK_CI_VERSION}
-
php --version
-
ls -l
-
/tmp/set_version.sh ${CI_COMMIT_REF_NAME}
-
rm -rf ${CI_PROJECT_DIR}/release ${CI_PROJECT_DIR}/release.zip /tmp/release
-
mkdir /tmp/release
-
mkdir -p ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
-
cp -rf ${CI_PROJECT_DIR}/* /tmp/release
-
cp -rf /tmp/release/* ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
-
cd ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
-
composer install --no-dev --no-progress --optimize-autoloader
-
rm -rf build-coverage release tests docs .git .editorconfig .gitignore .gitlab-ci.yml apigen.neon
-
rm -rf composer.json composer.lock phpcs.xml.dist phpunit-integration.xml phpunit-unit.xml composer.phar wp-cli.phar
-
cd ../
-
zip -r -q ../release.zip ./
only
:
-
tags
deploy to shop
:
<<
:
*job-deploy-template
script
:
-
echo ${WPDESK_CI_VERSION}
-
/tmp/deploy_shop.sh ${CI_PROJECT_NAME} release.zip ${CI_PROJECT_NAME}.zip
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Projekt
<https://gitlab.com/wpdesk/${CI_PROJECT_NAME}|${CI_PROJECT_NAME}>
zdeployowany
do
sklepu
w
wersji
${CI_COMMIT_REF_NAME}\",
}"
https://hooks.slack.com/services/${SLACK_AUTH}'
environment
:
name
:
wpdesk shop
url
:
https://wpdeskplugin.s3.amazonaws.com/${CI_PROJECT_NAME}.zip
deploy to demo
:
<<
:
*job-deploy-template
script
:
-
echo ${WPDESK_CI_VERSION}
-
/tmp/deploy_demo.sh release/${CI_PROJECT_NAME} ${CI_PROJECT_NAME}
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Projekt
<https://gitlab.com/wpdesk/${CI_PROJECT_NAME}|${CI_PROJECT_NAME}>
zdeployowany
do
demo
w
wersji
${CI_COMMIT_REF_NAME}\",
}"
https://hooks.slack.com/services/${SLACK_AUTH}'
environment
:
name
:
wpdesk demo
url
:
https://demo.wpdesk.org
deploy to repository
:
<<
:
*job-deploy-template
script
:
-
echo ${WPDESK_CI_VERSION}
-
rm -rf /tmp/svn-repository
-
mkdir /tmp/svn-repository
-
/tmp/deploy_repository.sh ${CI_PROJECT_NAME} ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME} /tmp/svn-repository
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Projekt
<https://gitlab.com/wpdesk/${CI_PROJECT_NAME}|${CI_PROJECT_NAME}>
zdeployowany
do
repozytorium
WP
w
wersji
${CI_COMMIT_REF_NAME}\",
}"
https://hooks.slack.com/services/${SLACK_AUTH}'
environment
:
name
:
wordpress repository
url
:
https://downloads.wordpress.org/plugin/${CI_PROJECT_NAME}.${CI_COMMIT_REF_NAME}.zip
This diff is collapsed.
Click to expand it.
src/Plugin/Has_Plugin_Info.php
+
1
−
1
View file @
b132d224
<?php
<?php
if
(
!
class_exists
(
'WPDesk_Translable'
))
{
if
(
!
class_exists
(
'WPDesk_Translable'
))
{
require_once
'
../Translable.php'
;
require_once
dirname
(
__FILE__
)
.
'/
../Translable.php'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Plugin_Info.php
+
2
−
2
View file @
b132d224
<?php
<?php
if
(
!
class_exists
(
'WPDesk_Translable'
))
{
if
(
!
class_exists
(
'WPDesk_Translable'
))
{
require_once
'
../Translable.php'
;
require_once
dirname
(
__FILE__
)
.
'/
../Translable.php'
;
}
}
if
(
!
class_exists
(
'WPDesk_Buildable'
))
{
if
(
!
class_exists
(
'WPDesk_Buildable'
))
{
require_once
'
../Buildable.php'
;
require_once
dirname
(
__FILE__
)
.
'/
../Buildable.php'
;
}
}
if
(
!
class_exists
(
'WPDesk_Has_Plugin_Info'
))
{
if
(
!
class_exists
(
'WPDesk_Has_Plugin_Info'
))
{
require_once
'Has_Plugin_Info.php'
;
require_once
'Has_Plugin_Info.php'
;
...
...
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