~singpolyma/dhall-ruby

fdeac210716f2db136937aa66d0f62afa49e3905 — Stephen Paul Weber 3 years ago 82ab32c
Update makefile with more helpers
3 files changed, 12 insertions(+), 3 deletions(-)

M .builds.dhall/debian-stable.dhall
M .builds/debian-stable.yml
M Makefile
M .builds.dhall/debian-stable.dhall => .builds.dhall/debian-stable.dhall +1 -1
@@ 14,7 14,7 @@
		{ build =
			''
			cd dhall-ruby
			rubocop
			make lint
			bundle install --path="../.gems"
			make test
			''

M .builds/debian-stable.yml => .builds/debian-stable.yml +1 -1
@@ 4,7 4,7 @@ sources:
tasks:
- build: |
    cd dhall-ruby
    rubocop
    make lint
    bundle install --path="../.gems"
    make test
packages:

M Makefile => Makefile +10 -1
@@ 1,7 1,16 @@
.PHONY: test
.PHONY: lint test unit clean

lib/dhall/parser.citrus: dhall-lang/standard/dhall.abnf scripts/generate_citrus_parser.rb lib/dhall/parser.rb
	bundle exec ruby -E UTF-8 -Ilib scripts/generate_citrus_parser.rb < dhall-lang/standard/dhall.abnf > $@

lint:
	rubocop -D

test: lib/dhall/parser.citrus
	bundle exec ruby -E UTF-8 -Ilib test/test_suite.rb

unit: lib/dhall/parser.citrus
	bundle exec ruby -E UTF-8 -Ilib test/test_suite.rb -n'/unit|simple|failure|import/'

clean:
	$(RM) lib/dhall/parser.citrus