-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
65 lines (59 loc) · 1.97 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
language: rust
#test on all 3 channels
rust:
- stable
- beta
- nightly
env:
global:
- RUST_BACKTRACE=1
- NVIMPAM_LOG_FILE=nvimpamlog
- NVIMPAM_LOG_LEVEL=debug
- NVIMPAM_STDERR=nvimpamstderr
#build failures only when on stable
matrix:
allow_failures:
- rust: nightly
- rust: beta
# should speed it up a bit, not sure what depth is good
git:
depth: 3
# more speedup by caching dependencies as long as the compiler isn't upgraded
cache: cargo
#run on both linux and osx
os:
- linux
- osx
# add an additional stage functionaltest for integration tests with neovim
jobs:
include:
- stage: functionaltest
# build plugin first, then run the test from neovim
script: git clone https://github.com/Vigemus/impromptu.nvim
&& mv impromptu.nvim ..
&& cargo build && cargo build --release
&& cd neovim && git submodule init
&& git submodule update --remote --depth 50
&& TEST_FILE=../test/nvimpam_spec.lua make functionaltest
&& cd .. && RUSTFLAGS="-C opt-level=0" cargo bench -- --test
after_script: echo $NVIMPAM_STDERR && cat nvimpamstderr
# cache it all, especially the neovim sources won't change often
cache:
- cargo
os: linux
#reproduce the same for osx
- stage: functionaltest
script: git clone https://github.com/Vigemus/impromptu.nvim
&& mv impromptu.nvim ..
&& cargo build && cargo build --release
&& cd neovim && git submodule init
&& git submodule update --remote --depth 50
&& brew update && brew install ninja && brew install gettext
&& brew reinstall libtool
&& TEST_FILE=../test/nvimpam_spec.lua make functionaltest
&& cd .. && RUSTFLAGS="-C opt-level=0" cargo bench -- --test
after_script: echo $NVIMPAM_STDERR && cat nvimpamstderr
cache:
- cargo
os: osx
osx_image: xcode7.3