Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d67a852ae8 | |||
6cf8fe749d |
|
@ -9,9 +9,8 @@ workspace:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: iamthefij/drone-pre-commit:latest
|
image: iamthefij/drone-pre-commit@sha256:6ed8dae6b0067bd2e145e36421bcfbbc68975ff7ddaa5a3f285b5bcdaf0989c8
|
||||||
commands:
|
commands:
|
||||||
- pip install docker-compose
|
|
||||||
- make all
|
- make all
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
all: check test
|
all: check test
|
||||||
|
|
||||||
test: test-negative test-positive
|
test: test-negative test-positive test-hooks
|
||||||
|
|
||||||
.PHONY: test-positive
|
.PHONY: test-positive
|
||||||
test-positive:
|
test-positive:
|
||||||
|
@ -16,6 +16,10 @@ test-negative:
|
||||||
@echo "Check multiple files. Should error."
|
@echo "Check multiple files. Should error."
|
||||||
./compose-check.sh tests/docker-compose* && { echo 'fail'; exit 1; } || echo 'ok'
|
./compose-check.sh tests/docker-compose* && { echo 'fail'; exit 1; } || echo 'ok'
|
||||||
|
|
||||||
|
.PHONY: test-hooks
|
||||||
|
test-hooks:
|
||||||
|
pre-commit try-repo . --all-files
|
||||||
|
|
||||||
# Installs pre-commit hooks
|
# Installs pre-commit hooks
|
||||||
.PHONY: install-hooks
|
.PHONY: install-hooks
|
||||||
install-hooks:
|
install-hooks:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user