Skip to content

Commit

Permalink
Define make test target
Browse files Browse the repository at this point in the history
  • Loading branch information
macisamuele committed Jan 25, 2020
1 parent d17a1ef commit 10dd7df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,5 @@ cache:
- ${HOME}/.m2

script:
- ./gradlew plugin:build
- ./gradlew plugin:publishToMavenLocal
- ./gradlew generateSwagger
- ./gradlew assembleDebug
- ./gradlew check
- make test
- bash <(curl -s https://codecov.io/bash)
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: install-hooks regenerate-samples
.PHONY: install-hooks regenerate-samples test

.git/hooks/pre-commit: venv
${CURDIR}/venv/bin/pre-commit install --install-hooks
Expand All @@ -11,6 +11,13 @@ regenerate-samples:
${CURDIR}/gradlew plugin:publishToMavenLocal
${CURDIR}/gradlew generateSwagger

test:
${CURDIR}/gradlew plugin:build
${CURDIR}/gradlew plugin:publishToMavenLocal
${CURDIR}/gradlew generateSwagger
${CURDIR}/gradlew assembleDebug
${CURDIR}/gradlew check

venv:
virtualenv venv
./venv/bin/pip install pre-commit

0 comments on commit 10dd7df

Please sign in to comment.