Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
ETH Simple Shortlinks
Commits
a6dafaf9
Commit
a6dafaf9
authored
May 12, 2019
by
Erick Hitter
Browse files
Fixes for 5.x tests
parent
81682933
Pipeline
#1000
passed with stages
in 4 minutes and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a6dafaf9
...
...
@@ -2,6 +2,7 @@ variables:
# Configure mysql service (https://hub.docker.com/_/mysql/)
MYSQL_DATABASE
:
wordpress_tests
MYSQL_ROOT_PASSWORD
:
mysql
WP_VERSION
:
latest
cache
:
paths
:
...
...
@@ -10,7 +11,7 @@ cache:
before_script
:
# Set up WordPress tests
-
bash bin/install-wp-tests.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD mysql
latest
true
-
bash bin/install-wp-tests.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD mysql
$WP_VERSION
true
# PHPUnit
-
|
...
...
@@ -22,6 +23,8 @@ before_script:
PHPunit:PHP5.3:MySQL:
stage
:
test
variables
:
WP_VERSION
:
5.1.1
image
:
containers.ethitter.com:443/docker/images/php:5.3
services
:
-
mysql:5.6
...
...
tests/bootstrap.php
View file @
a6dafaf9
...
...
@@ -26,7 +26,7 @@ function _manually_load_plugin() {
// Plugin requires a permalink structure to operate.
_set_default_permalink_structure_for_tests
();
require
dirname
(
__FILE__
,
2
)
.
'/eth-simple-shortlinks.php'
;
require
dirname
(
dirname
(
__FILE__
)
)
.
'/eth-simple-shortlinks.php'
;
}
tests_add_filter
(
'muplugins_loaded'
,
'_manually_load_plugin'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment