Init
This commit is contained in:
parent
3c8db1d872
commit
27239be8c6
8 changed files with 4028 additions and 1 deletions
29
Makefile
Normal file
29
Makefile
Normal file
|
@ -0,0 +1,29 @@
|
|||
# This file is licensed under the Affero General Public License version 3 or
|
||||
# later. See the COPYING file.
|
||||
app_name=$(notdir $(CURDIR))
|
||||
build_tools_directory=$(CURDIR)/build/tools
|
||||
composer=$(shell which composer 2> /dev/null)
|
||||
|
||||
# Dev env management
|
||||
dev-setup: composer
|
||||
|
||||
|
||||
# Installs and updates the composer dependencies. If composer is not installed
|
||||
# a copy is fetched from the web
|
||||
composer:
|
||||
ifeq (, $(composer))
|
||||
@echo "No composer command available, downloading a copy from the web"
|
||||
mkdir -p $(build_tools_directory)
|
||||
curl -sS https://getcomposer.org/installer | php
|
||||
mv composer.phar $(build_tools_directory)
|
||||
php $(build_tools_directory)/composer.phar install --prefer-dist
|
||||
php $(build_tools_directory)/composer.phar update --prefer-dist
|
||||
else
|
||||
composer install --prefer-dist
|
||||
composer update --prefer-dist
|
||||
endif
|
||||
|
||||
# Tests
|
||||
test:
|
||||
./vendor/phpunit/phpunit/phpunit -c phpunit.xml
|
||||
./vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml
|
Loading…
Add table
Add a link
Reference in a new issue