forked from autozimu/LanguageClient-neovim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (50 loc) · 1.32 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
64
65
66
67
all: check build fmt clippy
check:
cargo check
build:
cargo build
fmt:
cargo fmt
clippy:
cargo +nightly clippy
vint:
vint autoload plugin
release:
cargo build --release
cp -f target/release/languageclient bin/
chmod a+x bin/languageclient
bump-version:
cargo release patch
test:
cargo test
integration-test-lint:
mypy --ignore-missing-imports \
tests \
rplugin/python3/denite/source \
rplugin/python3/deoplete/sources
flake8 .
integration-test: build integration-test-lint
tests/test.sh
integration-test-docker:
docker image pull autozimu/languageclientneovim
docker run --volume ${CURDIR}:/root/.config/nvim autozimu/languageclientneovim bash -c "\
export CARGO_TARGET_DIR=/tmp && \
cd /root/.config/nvim && \
make integration-test"
integration-test-docker-debug:
docker image pull autozimu/languageclientneovim
docker run --interactive --tty --volume ${CURDIR}:/root/.config/nvim autozimu/languageclientneovim
cleanup-binary-tags:
ci/cleanup-binary-tags.py
clean:
cargo clean
rm -rf bin/languageclient
DATE := $(shell date +%F)
build-docker-image: ci/Dockerfile
docker build \
--tag autozimu/languageclientneovim:latest \
--tag autozimu/languageclientneovim:$(DATE) \
ci
publish-docker-image:
docker push autozimu/languageclientneovim:latest
docker push autozimu/languageclientneovim:$(DATE)