Let it be extensible (#112)
This commit is contained in:
parent
b868d88a85
commit
276fc4409f
2
Makefile
2
Makefile
|
@ -14,6 +14,8 @@ install: build
|
||||||
bin: build
|
bin: build
|
||||||
mkdir -p $(SHARD_BIN)
|
mkdir -p $(SHARD_BIN)
|
||||||
cp ./bin/ameba $(SHARD_BIN)
|
cp ./bin/ameba $(SHARD_BIN)
|
||||||
|
run_file:
|
||||||
|
cp -r ./bin/ameba.cr $(SHARD_BIN)
|
||||||
test: build
|
test: build
|
||||||
$(CRYSTAL_BIN) spec
|
$(CRYSTAL_BIN) spec
|
||||||
./bin/ameba --all
|
./bin/ameba --all
|
||||||
|
|
|
@ -73,7 +73,7 @@ install:
|
||||||
- shards install
|
- shards install
|
||||||
script:
|
script:
|
||||||
- crystal spec
|
- crystal spec
|
||||||
- bin/ameba
|
- crystal bin/ameba.cr
|
||||||
```
|
```
|
||||||
|
|
||||||
Using this config Ameba will inspect files just after the specs run. Travis will also fail
|
Using this config Ameba will inspect files just after the specs run. Travis will also fail
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Require ameba cli which starts the inspection.
|
||||||
|
require "ameba/cli"
|
||||||
|
|
||||||
|
# Require ameba extensions here which are added as project dependencies.
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# require "ameba-performance"
|
Loading…
Reference in New Issue