Skip to content

Commit

Permalink
Merge pull request #254 from j0k3r/makefile
Browse files Browse the repository at this point in the history
Makefile
  • Loading branch information
j0k3r authored Aug 20, 2019
2 parents c69c855 + 7633085 commit a0a18cd
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 169 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true

[Makefile]
# Use tabs for indentation (Makefiles require tabs)
indent_style = tab
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ before_script:
- if [ $COVERAGE = run ]; then PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"; fi;

script:
- ant prepare
- make prepare
- mkdir -p build/logs
- php bin/simple-phpunit -v $PHPUNIT_FLAGS
- if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi;
Expand Down
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.PHONY: build clean-local local clean prepare phpunit

build: prepare phpunit

clean-local:
rm -rf build
rm -rf var/cache

local: clean-local
mkdir -p build/coverage
mkdir -p build/logs
mkdir -p var/cache
php bin/console doctrine:mongodb:schema:create --env=test
php bin/console doctrine:mongodb:fixtures:load --env=test -n
php bin/console cache:clear --env=test

clean:
rm -rf build/coverage
rm -rf build/logs
rm -rf var/cache

prepare: clean
mkdir -p build/coverage
mkdir -p build/logs
mkdir -p var/cache
composer install --no-interaction -o --prefer-dist
php bin/console doctrine:mongodb:schema:create --env=test
php bin/console doctrine:mongodb:fixtures:load --env=test -n
php bin/console cache:clear --env=test

phpunit:
php bin/simple-phpunit --coverage-html build/coverage
70 changes: 0 additions & 70 deletions build.xml

This file was deleted.

Loading

0 comments on commit a0a18cd

Please sign in to comment.