forked from rking/ag.vim
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
94 lines (74 loc) · 2.03 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
language: generic
matrix:
include:
- &vim74
env: AG_VER=master
sudo: false
addons:
apt:
packages:
- vim
- automake
- pkg-config
- libpcre3-dev
- zlib1g-dev
- liblzma-dev
before_install:
- URL=https://github.com/ggreer/the_silver_searcher/archive
- DIR=$HOME/ag/the_silver_searcher-$AG_VER
- export PATH="$DIR:$PATH"
- if [[ ! -d $DIR ]]; then
(cd ~ && wget $URL/$AG_VER.zip && unzip -d ag $AG_VER.zip); fi
- if [[ ! -f $DIR/ag ]]; then
(cd $DIR && ./build.sh) || (rm -rf $DIR); fi
- ver=$(ag --version | awk '{gsub("\\.","");printf("%d\n",$NF);exit}')
- if (($ver >= 280)) && [[ ! -f $DIR/ag- ]]; then
mv -v $DIR/ag{,-};
printf '#!/bin/sh\nag- --noaffinity "$@"' > $DIR/ag;
chmod +x $DIR/ag; fi
cache:
directories:
- $HOME/ag
script:
- ag --version
- vim --version
- (cd t && ./suite.sh --verbose --clean)
- << : *vim74
env: AG_VER=0.31.0
- << : *vim74
env: AG_VER=0.25.0
- << : *vim74
env: AG_VER=0.23.0
- &nvim env: EDITOR=nvim
sudo: required
dist: trusty
before_script:
- sudo apt-add-repository ppa:neovim-ppa/unstable -y
- sudo apt-get update -qq
- sudo apt-get install neovim
- sudo apt-get install silversearcher-ag
script:
- vim --version
- cd scripts
- ./suite.sh --verbose --clean
- &vim73 env:
sudo: required
before_script:
- sudo apt-get install vim
- sudo apt-add-repository ppa:fcwu-tw/ppa -y
- sudo apt-get update -qq
- sudo apt-get install silversearcher-ag
script:
- vim --version
- ag --version
- cd scripts
- ./suite.sh --verbose --clean
notifications:
email:
webhooks:
urls:
- https://webhooks.gitter.im/e/5413140439cc10447c97
on_success: change
on_failure: always
on_start: never