-
Notifications
You must be signed in to change notification settings - Fork 272
/
Makefile
74 lines (55 loc) · 1.53 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
68
69
70
71
72
73
74
all: release
dev: build fmt clippy vim-lint
ci: vim-lint python-lint check-fmt-and-clippy test integration-test
check-fmt-and-clippy:
cargo check
cargo fmt -- --check
cargo clippy -- --deny warnings
build:
cargo build
fmt:
cargo fmt
clippy:
cargo clippy
vim-lint:
vint autoload plugin
release:
cargo build --release
[ -z "${CARGO_TARGET_DIR}" ] && \
cp -f target/release/languageclient bin/ || \
cp -f ${CARGO_TARGET_DIR}/release/languageclient bin/
chmod a+x bin/languageclient
bump-version:
[[ `git rev-parse --abbrev-ref HEAD` == "dev" ]] || (echo "Not on branch dev"; exit 1)
cargo release patch
test:
cargo test
python-lint:
mypy --ignore-missing-imports \
tests \
rplugin/python3/denite/source \
rplugin/python3/deoplete/sources
flake8 .
integration-test: build
tests/test.sh
integration-test-docker:
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 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 --utc +%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)