From 099500eced6fb807cf301aaed80ff25feab48df9 Mon Sep 17 00:00:00 2001 From: Remon van de Kamp Date: Sun, 23 Jun 2019 20:34:03 +0200 Subject: [PATCH] Enable Twig linting --- Makefile | 10 +++++++++- circle.yml | 2 +- templates/event_checkin.html.twig | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2351259..2ce21e9 100644 --- a/Makefile +++ b/Makefile @@ -19,4 +19,12 @@ vendor: composer.json composer.lock node_modules: package.json npm install -.PHONY: build-assets +unit-tests: ## Run unit tests + vendor/bin/phpunit + +lint: + bin/console lint:twig templates/ + +test: unit-tests lint + +.PHONY: help install build-assets unit-tests lint test diff --git a/circle.yml b/circle.yml index 24b1557..0240ecd 100644 --- a/circle.yml +++ b/circle.yml @@ -13,7 +13,7 @@ dependencies: test: override: - - ./vendor/bin/phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml + - make test deployment: production: diff --git a/templates/event_checkin.html.twig b/templates/event_checkin.html.twig index 731d4f2..87c5d8e 100644 --- a/templates/event_checkin.html.twig +++ b/templates/event_checkin.html.twig @@ -13,7 +13,7 @@
{{ rsvp.name }}