Skip to content

Latest commit

 

History

History
72 lines (53 loc) · 1.39 KB

CONTRIBUTING.md

File metadata and controls

72 lines (53 loc) · 1.39 KB

Contributing

Active contribution and patches are very welcome. See the github issues. To keep things in shape we have quite a bunch of examples and features. If you're submitting pull requests please make sure that they are still passing and if you add functionality please take a look at the coverage as well it should be pretty high :)

  • First fork or clone the repository
git clone git://github.com/badges/poser.git
cd poser
  • Install vendors:
composer install
  • Run specs:
composer phpspec
  • Then run behat:
composer behat

Using Docker

docker-compose up --build -d
docker-compose exec php83 composer install
docker-compose exec php83 composer phpspec
docker-compose exec php83 composer behat
docker-compose exec php83 composer php-cs-fixer

or

Pull Request

Please before to push a PR execute php-cs-fixer for the code check-style and run all tests

$ composer php-cs-fixer
$ composer phpspec
$ composer behat

How build new images on M1

$ docker run --privileged --rm tonistiigi/binfmt --install all
$ docker buildx create --name mybuilder
$ docker buildx use mybuilder
$ docker buildx build \
  --platform linux/amd64,linux/arm64 \
  --build-arg BUILDKIT_INLINE_CACHE=1 \
  --push \
  -t pugx/poser:php81 \
  -f .docker/base/php81/Dockerfile \
  .

ENJOY