-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace old run.sh with simpler Makefile
- Loading branch information
1 parent
0e12206
commit d75cf73
Showing
3 changed files
with
23 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
VERSIONS = php-5.6 php-7.0 php-7.1 nightly | ||
|
||
all: build test clean | ||
|
||
build: | ||
@echo ">> building images" | ||
docker-compose build | ||
|
||
test: | ||
@- $(foreach version,$(VERSIONS), \ | ||
echo ">> run tests with $(version)"; \ | ||
docker-compose run --rm $(version) php bin/security-checker.phar security:check ./composer.lock --end-point=http://security.sensiolabs.org/check_lock; \ | ||
docker-compose run --rm $(version) php bin/phpcs.phar --standard=PSR2 ./src -v; \ | ||
docker-compose run --rm $(version) php bin/phpmd.phar ./src text ./phpmd.xml; \ | ||
docker-compose run --rm $(version) php bin/phpcpd.phar ./src; \ | ||
docker-compose run --rm $(version) php bin/phpunit.phar; \ | ||
printf "\033c"; \ | ||
) | ||
|
||
clean: | ||
@echo ">> cleanup" | ||
docker-compose rm -f &>/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.