Skip to content

Commit 3b94720

Browse files
author
Edwin Siebel
committed
(chore): SK20292: update phpunit + add query_args
1 parent 6094991 commit 3b94720

40 files changed

+1774
-1079
lines changed

Diff for: .gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,8 @@ vendor
9797

9898
tests/coverage
9999
wp-content/
100+
101+
.DS_Store
102+
103+
# php cs
104+
.php_cs.cache

Diff for: autoloader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ public function __construct()
2222
}
2323
});
2424
}
25-
}
25+
}

Diff for: bitbucket-pipelines.yml

+29-21
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
1-
image: oktupol/bitbucket-pipelines-php71
1+
image: yardinternet/php7.2-composer
22

33
pipelines:
4+
custom:
5+
manually:
6+
- step:
7+
name: unit test
8+
caches:
9+
- composer
10+
- vendor-directory
11+
script:
12+
- composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs
13+
- ./vendor/bin/phpunit --testsuite "Unit Test Suite"
414
branches:
5-
master:
6-
- step:
7-
name: unit test
8-
caches:
9-
- composer
10-
- vendor-directory
11-
script:
12-
- apt-get update && apt-get install -y git openssh-server
13-
- composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs
14-
- ./vendor/bin/phpunit --testsuite "Unit Test Suite"
15-
- step:
16-
name: Deploy docs to production
17-
caches:
18-
- composer
19-
- vendor-directory
20-
deployment: production
21-
script:
22-
- apt-get update && apt-get install -y git openssh-server rsync
23-
- composer docs
24-
- ssh [email protected] mkdir -p /data/www/docs.openwebconcept.nl/htdocs/plugins/openpub && rsync -avH ./docs/* -e "ssh" [email protected]:/data/www/docs.openwebconcept.nl/htdocs/plugins/openpub
15+
"{master,develop}":
16+
- step:
17+
name: unit test
18+
caches:
19+
- composer
20+
- vendor-directory
21+
script:
22+
- composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs
23+
- ./vendor/bin/phpunit --testsuite "Unit Test Suite"
24+
- step:
25+
name: Deploy docs to production
26+
caches:
27+
- composer
28+
- vendor-directory
29+
deployment: production
30+
script:
31+
- apt-get update && apt-get install -y rsync
32+
- ssh [email protected] mkdir -p /data/www/docs.openwebconcept.nl/htdocs/plugins/openpub && rsync -avH ./docs/* -e "ssh" [email protected]:/data/www/docs.openwebconcept.nl/htdocs/plugins/openpub
2533

2634
definitions:
2735
caches:

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"require-dev": {
2323
"mockery/mockery": "1.0.*",
24-
"phpunit/phpunit": "~7.0",
24+
"phpunit/phpunit": "~8.0",
2525
"10up/wp_mock": "dev-master",
2626
"phpdocumentor/phpdocumentor": "2.*",
2727
"squizlabs/php_codesniffer": "^3.0.2"

0 commit comments

Comments
 (0)