aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a63017c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,53 @@
+NAME=vim-prettier
+
+VERSION=1.0.0-alpha
+
+build:
+ docker build -t mitermayer/vim-test-bed .
+
+test:
+ echo "Running tests..."
+ docker run \
+ -t \
+ --rm \
+ -v ${PWD}:/testplugin \
+ -v ${PWD}/tests:/home \
+ "mitermayer/vim-test-bed" \
+ yarn --cwd testplugin test
+
+lint:
+ echo "Running linter..."
+ docker run \
+ -t \
+ --rm \
+ -v ${PWD}:/testplugin \
+ -v ${PWD}/tests:/home \
+ "mitermayer/vim-test-bed" \
+ yarn --cwd testplugin lint
+
+tag:
+ git tag $(VERSION)
+
+chroot:
+ docker run \
+ -it \
+ -v ${PWD}:/testplugin \
+ -v ${PWD}/tests:/home \
+ "mitermayer/vim-test-bed" \
+ bash
+
+run:
+ docker run \
+ -it \
+ -v ${PWD}:/testplugin \
+ -v ${PWD}/tests:/home \
+ "mitermayer/vim-test-bed" \
+ ${VIM_VERSION} -u /home/vimrc
+
+changelog:
+ docker run -it --rm -v "${PWD}":/usr/local/src/your-app ferrarimarco/github-changelog-generator -u prettier -p vim-prettier -t ${GITHUB_REPO_READ_TOKEN}
+
+release:
+ git push --tags
+
+.PHONY: build test lint tag chroot run changelog release