forked from ocaml/ocaml-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 806 Bytes
/
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
TEST_E2E_DIR = ocaml-lsp-server/test/e2e
build:
dune build
.PHONY: build
fmt:
dune build @fmt --auto-promote
cd $(TEST_E2E_DIR) && yarn fmt
.PHONY: fmt
fmt-check:
dune build @fmt
cd $(TEST_E2E_DIR) && yarn fmt-check
.PHONY: fmt-check
lsp-server:
dune build @install
.PHONY: lsp-server
test: $(TEST_E2E_DIR)/node_modules lsp-server
cd $(TEST_E2E_DIR) && dune exec -- yarn test
.PHONY: test
$(TEST_E2E_DIR)/node_modules:
cd $(TEST_E2E_DIR) && yarn install --frozen-lockfile
travis-test:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" \
| sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install -y yarn
cd $(TEST_E2E_DIR) && yarn install --frozen-lockfile
cd $(TEST_E2E_DIR) && yarn test