Add spec.cr and clean up Makefile

This commit is contained in:
Donovan Glover 2018-01-30 23:55:05 -05:00
parent 89b682aed6
commit 60c9340720
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D
2 changed files with 11 additions and 41 deletions

View File

@ -1,41 +1,3 @@
SOURCES = bin/maid bin/serv bin/pass bin/theme
BIN = bin/
.PHONY: all
all: $(SOURCES)
.PHONY: release
production: FLAGS = --release
production: $(SOURCES)
.PHONY: update
update:
shards update
.PHONY: install
install:
shards install
bin/maid: src/maid.cr
@mkdir -p ${BIN}
crystal build $< -o $@ $(FLAGS)
bin/pass: src/pass.cr
@mkdir -p ${BIN}
crystal build $< -o $@ $(FLAGS)
bin/theme: src/theme.cr src/theme_helper/*.cr
@mkdir -p ${BIN}
crystal build $< -o $@ $(FLAGS)
bin/trufetch: src/trufetch.cr
@mkdir -p ${BIN}
crystal build $< -o $@ $(FLAGS)
bin/git-blame: src/git-blame.cr
@mkdir -p ${BIN}
crystal build $< -o $@ ${FLAGS}
bin/plain-text: src/plain-text.cr
@mkdir -p ${BIN}
crystal build $< -o $@ ${FLAGS}
.PHONY: spec
spec:
@crystal spec spec.cr --verbose

8
spec.cr Normal file
View File

@ -0,0 +1,8 @@
require "spec"
describe "New Start" do
it "has tests" do
true.should eq true
end
end