Name: fundraising-subscriptions
Owner: Wikimedia Deutschland e.V.
Description: Bounded context for subscriptions in the fundraising code base
Created: 2018-04-27 12:35:44.0
Updated: 2018-05-04 18:43:39.0
Pushed: 2018-05-04 18:43:37.0
Homepage: null
Size: 58
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Bounded Context for the Wikimedia Deutschland fundraising subscriptions (people subscribing to newsletters and reminders).
To use the wmde/fundraising-subscriptions
library in your project, add a dependency on wmde/fundraising-subscriptions
to your project's composer.json
file. Here is a minimal example of a composer.json
file that just defines a dependency on wmde/fundraising-subscriptions
1.x:
"require": {
"wmde/fundraising-subscriptions": "~1.0"
}
For development you need to have Docker and Docker-compose installed. Local PHP and Composer are not needed.
sudo apt-get install docker docker-compose
To pull in the project dependencies via Composer, run:
make composer install
You can run other Composer commands via make run
, but at present this does not support argument flags.
If you need to execute such a command, you can do so in this format:
docker run --rm --interactive --tty --volume $PWD:/app -w /app\
--volume ~/.composer:/composer --user $(id -u):$(id -g) composer composer install --no-scripts
Where composer install --no-scripts
is the command being run.
To run all CI checks, which includes PHPUnit tests, PHPCS style checks and coverage tag validation, run:
make
To run just the PHPUnit tests run
make test
To run only a subset of PHPUnit tests or otherwise pass flags to PHPUnit, run
docker-compose run --rm app ./vendor/bin/phpunit --filter SomeClassNameOrFilter