This repository was archived by the owner on Feb 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 1.21 KB
/
Makefile
File metadata and controls
46 lines (35 loc) · 1.21 KB
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
PHONY:clean test testOriginalVim testNeoVim build tslint release buildcontainer testincontainer
MOCHA=./node_modules/mocha/bin/mocha --require source-map-support/register
TSC=./node_modules/typescript/bin/tsc
TSLINT=./node_modules/tslint/bin/tslint
test: build tslint
cd out;../$(MOCHA) -g VimStyle
testOriginalVim: build
cd out;../$(MOCHA) -g OriginalVim
testNeoVim: build
cd out;../$(MOCHA) -g NeoVim
build: node_modules
$(TSC)
tslint: build
$(TSLINT) src/**/**.ts
release: test
vsce package
vsce publish
release-avoid-tests: build
vsce package
vsce publish
install:node_modules
node_modules:
npm install
clean:
rm -rf out
rm -f *.vsix
buildcontainer:
cd testcontainer/centos7;docker build -t vscode-vim-centos7 .
cd testcontainer/ubuntu1604;docker build -t vscode-vim-ubuntu1604 .
testincontainer-originalvim-centos7:
docker run -it -v `pwd`:/root/ -w /root/out/ vscode-vim-centos7 vim --version
docker run -it -v `pwd`:/root/ -w /root/out/ vscode-vim-centos7 ../$(MOCHA) -g OriginalVim
testincontainer-originalvim-ubuntu1604:
docker run -it -v `pwd`:/root/ -w /root/out/ vscode-vim-ubuntu1604 vim --version
docker run -it -v `pwd`:/root/ -w /root/out/ vscode-vim-ubuntu1604 ../$(MOCHA) -g OriginalVim