-
-
Notifications
You must be signed in to change notification settings - Fork 138
/
Makefile
63 lines (52 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
NAME=vim-prettier
VERSION=1.0.0
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
test-update-snapshot:
echo "Running tests..."
docker run \
-t \
--rm \
-v ${PWD}:/testplugin \
-v ${PWD}/tests:/home \
"mitermayer/vim-test-bed" \
yarn --cwd testplugin test -u
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