Skip to content

Commit

Permalink
Moves composer script to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
davedevelopment committed Feb 27, 2018
1 parent 090566a commit 87d2545
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ phpunit.xml
*.DS_store
.idea/*
.php_cs.cache
apidocs/
docs/api
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ after_success:
- vendor/bin/coveralls -v
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover "$clover"
- composer run-script docs
- make apidocs

notifications:
email:
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ deps: vendor/composer/installed.json
test: deps
php vendor/bin/phpunit

.PHONY: apidocs
apidocs: docs/api/index.html

library_files=$(shell find library -name '*.php')
docs/api/index.html: vendor/composer/installed.json $(library_files)
vendor/bin/phpdoc -d library -t docs/api

.PHONY: test-all
test-all: test-72 test-71 test-70 test-56

Expand Down

0 comments on commit 87d2545

Please sign in to comment.