Skip to content

Commit

Permalink
(chore): SK20292: update phpunit + add query_args
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin Siebel committed Aug 2, 2019
1 parent 6094991 commit 3b94720
Show file tree
Hide file tree
Showing 40 changed files with 1,774 additions and 1,079 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,8 @@ vendor

tests/coverage
wp-content/

.DS_Store

# php cs
.php_cs.cache
2 changes: 1 addition & 1 deletion autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public function __construct()
}
});
}
}
}
50 changes: 29 additions & 21 deletions bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
image: oktupol/bitbucket-pipelines-php71
image: yardinternet/php7.2-composer

pipelines:
custom:
manually:
- step:
name: unit test
caches:
- composer
- vendor-directory
script:
- composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs
- ./vendor/bin/phpunit --testsuite "Unit Test Suite"
branches:
master:
- step:
name: unit test
caches:
- composer
- vendor-directory
script:
- apt-get update && apt-get install -y git openssh-server
- composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs
- ./vendor/bin/phpunit --testsuite "Unit Test Suite"
- step:
name: Deploy docs to production
caches:
- composer
- vendor-directory
deployment: production
script:
- apt-get update && apt-get install -y git openssh-server rsync
- composer docs
- 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
"{master,develop}":
- step:
name: unit test
caches:
- composer
- vendor-directory
script:
- composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs
- ./vendor/bin/phpunit --testsuite "Unit Test Suite"
- step:
name: Deploy docs to production
caches:
- composer
- vendor-directory
deployment: production
script:
- apt-get update && apt-get install -y rsync
- 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

definitions:
caches:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"require-dev": {
"mockery/mockery": "1.0.*",
"phpunit/phpunit": "~7.0",
"phpunit/phpunit": "~8.0",
"10up/wp_mock": "dev-master",
"phpdocumentor/phpdocumentor": "2.*",
"squizlabs/php_codesniffer": "^3.0.2"
Expand Down
Loading

0 comments on commit 3b94720

Please sign in to comment.