forked from neovim/node-client
/
.travis.yml
70 lines (62 loc) · 1.57 KB
/
.travis.yml
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
language: node_js
node_js: stable
cache: yarn
# required for allowed_failures
env: TEST_SUITE=test-missing-apis
# Use macOS 10.12: https://docs.travis-ci.com/user/languages/objective-c/
matrix:
fast_finish: true
include:
- os: osx
osx_image: xcode9.1
env: TEST_SUITE=test-build
- os: linux
dist: trusty
env: TEST_SUITE=test-lint
- os: linux
dist: trusty
env: TEST_SUITE=test-missing-apis
- os: linux
dist: trusty
env: TEST_SUITE=test-build
allow_failures:
- language: node_js
env: TEST_SUITE=test-missing-apis
install:
- npm install -g yarn
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz
tar xzf nvim-macos.tar.gz
export PATH="${PATH}:node_modules/.bin:$(pwd)/nvim-osx64/bin"
else
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
tar xzf nvim-linux64.tar.gz
export PATH="${PATH}:node_modules/.bin:$(pwd)/nvim-linux64/bin"
fi
- echo $PATH
- nvim --version
- yarn global add codecov
- yarn
before_script:
- yarn link
- npm install -g ./
script:
- export NVIM_NODE_LOG_LEVEL=debug
- yarn $TEST_SUITE
after_success:
- codecov
notifications:
email:
on_success: never
on_failure: never
on_cancel: never
on_error: never
webhooks:
urls:
- https://webhooks.gitter.im/e/7898b0d8d9ea3a28b496
on_success: always
on_failure: always
on_cancel: always
on_error: always
on_start: never