Skip to content

Commit 0f54843

Browse files
authored
Merge pull request #49 from blueyed/makefile-check-force-compile
Revisit Travis config, fix check target, update compiled files
2 parents a4ee72e + 7629097 commit 0f54843

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

.travis.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,28 @@ git:
55

66
matrix:
77
include:
8-
- os: linux
9-
env: VIM_VERSION=v7.4
10-
- os: linux
11-
env: VIM_VERSION=v8.0.0000
12-
- os: linux
13-
env: VIM_VERSION=master
14-
15-
addons:
16-
apt:
17-
packages:
18-
- language-pack-ja
19-
- vim
8+
- env:
9+
- VIM_VERSION=v7.4
10+
- MAKE_TARGET=test
11+
- env:
12+
- VIM_VERSION=v8.0.0000
13+
- MAKE_TARGET=test
14+
- env:
15+
- VIM_VERSION=master
16+
- MAKE_TARGET=test
17+
- env:
18+
- VIM_VERSION=installed
19+
- MAKE_TARGET="clean_compiled check"
2020

2121
install:
22-
- bash scripts/install-vim.sh
23-
- export PATH=$HOME/vim/bin:$PATH
22+
- |
23+
if [ "$VIM_VERSION" != 'installed' ]; then
24+
bash scripts/install-vim.sh
25+
export PATH=$HOME/vim/bin:$PATH
26+
fi
2427
2528
script:
2629
- uname -a
2730
- which -a vim
2831
- vim --cmd version --cmd quit
29-
- test/run.sh
30-
- make check
32+
- make $MAKE_TARGET

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ js/vimlparser.js: autoload/vimlparser.vim js/jscompiler.vim js/vimlfunc.js
99
py/vimlparser.py: autoload/vimlparser.vim py/pycompiler.vim py/vimlfunc.py
1010
$(VIM_COMPILER) py/pycompiler.vim
1111

12+
clean_compiled:
13+
$(RM) $(COMPILED_FILES)
14+
1215
check: all
1316
git diff --exit-code $(COMPILED_FILES) || { \
14-
echo 'Compiled files were updated, but should have been committed.'; \
17+
echo 'Compiled files were updated, but should have been included/committed.'; \
1518
exit 1; }
19+
20+
test:
21+
test/run.sh

0 commit comments

Comments
 (0)