Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Camo Image Proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
Camo Image Proxy
Merge requests
!1
Add GitLab CI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add GitLab CI
add/gitlab-ci
into
master
Overview
1
Commits
20
Pipelines
20
Changes
3
Merged
Erick Hitter
requested to merge
add/gitlab-ci
into
master
6 years ago
Overview
1
Commits
20
Pipelines
20
Changes
3
Expand
Different set of boxes, there isn't a 7.2 in the current series and doesn't seem like that'll changes
Correct PHPUnit version for PHP version, as Travis handles
Fixes
#2 (closed)
Edited
6 years ago
by
Erick Hitter
0
0
Merge request reports
Viewing commit
3794862a
Prev
Next
Show latest version
3 files
+
14
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
3794862a
Cleanup
· 3794862a
Erick Hitter
authored
6 years ago
tests/bootstrap.php
+
9
−
9
Options
@@ -5,27 +5,27 @@
* @package Camo_Image_Proxy
*/
$_tests_dir
=
getenv
(
'WP_TESTS_DIR'
);
$
camo
_tests_dir
=
getenv
(
'WP_TESTS_DIR'
);
if
(
!
$_tests_dir
)
{
$_tests_dir
=
rtrim
(
sys_get_temp_dir
(),
'/\\'
)
.
'/wordpress-tests-lib'
;
if
(
!
$
camo
_tests_dir
)
{
$
camo
_tests_dir
=
rtrim
(
sys_get_temp_dir
(),
'/\\'
)
.
'/wordpress-tests-lib'
;
}
if
(
!
file_exists
(
$_tests_dir
.
'/includes/functions.php'
)
)
{
echo
"Could not find
$_tests_dir
/includes/functions.php, have you run bin/install-wp-tests.sh ?"
.
PHP_EOL
;
if
(
!
file_exists
(
$
camo
_tests_dir
.
'/includes/functions.php'
)
)
{
echo
"Could not find
$
camo
_tests_dir
/includes/functions.php, have you run bin/install-wp-tests.sh ?"
.
PHP_EOL
;
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
exit
(
1
);
}
// Give access to tests_add_filter() function.
require_once
$_tests_dir
.
'/includes/functions.php'
;
require_once
$
camo
_tests_dir
.
'/includes/functions.php'
;
/**
* Manually load the plugin being tested.
*/
function
_manually_load_plugin
()
{
function
camo
_manually_load_plugin
()
{
require
dirname
(
dirname
(
__FILE__
)
)
.
'/camo-image-proxy.php'
;
}
tests_add_filter
(
'muplugins_loaded'
,
'_manually_load_plugin'
);
tests_add_filter
(
'muplugins_loaded'
,
'
camo
_manually_load_plugin'
);
// Start up the WP testing environment.
require
$_tests_dir
.
'/includes/bootstrap.php'
;
require
$
camo
_tests_dir
.
'/includes/bootstrap.php'
;
Loading