mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Let it be extensible (#112)
This commit is contained in:
parent
b868d88a85
commit
276fc4409f
4 changed files with 12 additions and 2 deletions
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
|
||||||
|
|
7
bin/ameba.cr
Normal file
7
bin/ameba.cr
Normal file
|
@ -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"
|
|
@ -11,7 +11,8 @@ targets:
|
||||||
main: src/cli.cr
|
main: src/cli.cr
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
postinstall: make bin
|
# TODO: remove pre-compiled executable in future releases
|
||||||
|
postinstall: make bin && make run_file
|
||||||
|
|
||||||
executables:
|
executables:
|
||||||
- ameba
|
- ameba
|
||||||
|
|
Loading…
Reference in a new issue