Tools for codingame challenges
- docker
- phpunit
- blackfire
Note: setup the blackfire Credentials in the .env
###.env file (copy .env.dist and rename)
BLACKFIRE_CLIENT_ID=client-id-credentials
BLACKFIRE_CLIENT_TOKEN=client-token-credentials
BLACKFIRE_SERVER_ID=server-id-credentials
BLACKFIRE_SERVER_TOKEN=token-id-credentials
###Run the container
$ docker-compose up -d
$ docker-compose exec codingame composer install --prefer-dist
$ docker-compose exec codingame vendor/bin/phpunit
$ docker-compose exec codingame blackfire run php index.php
$ docker-compose exec codingame php vendor/bin/classpreloader compile --config=config/config.php --output=output.php