Skip to content

Commit 9911a28

Browse files
committed
add .travis.yml && rm read -p when run install.sh
1 parent 4be8761 commit 9911a28

File tree

3 files changed

+48
-24
lines changed

3 files changed

+48
-24
lines changed

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
sudo: required
2+
3+
language: generic
4+
5+
os:
6+
- linux
7+
- osx
8+
9+
before_install:
10+
- sudo add-apt-repository --yes ppa:kalakris/cmake
11+
- sudo apt-get update -qq
12+
- sudo apt-get install cmake
13+
14+
addons:
15+
apt:
16+
sources:
17+
- ubuntu-toolchain-r-test
18+
packages:
19+
- gcc-5
20+
- g++-5
21+
- clang
22+
23+
compiler:
24+
- gcc
25+
26+
script:
27+
- ./install.sh
28+
- sudo vim +PluginClean +qall

install-plugins.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function usage {
3333
printf " init\t初始化安装插件\n"
3434
printf " install\t安装新增变更配置\n"
3535
printf " update\t更新配置且更新所有插件。可能会导致ycm不能正常工作,此时需要执行 rebuild 命令\n"
36-
printf " rebuild\trebuild YouCompleteMe。可加YCM build的参数,例如:-clang-completer --gocode-completer\n"
36+
printf " rebuild\trebuild YouCompleteMe。可加YCM build的参数,例如:--clang-completer --gocode-completer\n"
3737
}
3838

3939

install.sh

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,28 @@ function backup {
1616

1717
platform=""
1818
for i in "Centos","Centos" "Ubuntu","Ubuntu" "Darwin","MacOSX"; do
19-
key=${i%,*}; value=${i#*,};
20-
if [ `python -mplatform | grep -ic $key` == 1 ]; then
19+
key=${i%,*}; value=${i#*,};
20+
if [ `python -mplatform | grep -ic $key` == 1 ]; then
2121
platform=$value
2222
echoo "You os is $platform."
2323
fi
2424
done
2525

2626

27-
read -p "Rebulid the vim and all plugins, Are you sure(Y/N)? " -n 1 -r
28-
echo
29-
if [[ $REPLY =~ ^[Yy]$ ]]; then
30-
backup
31-
case $platform in
32-
Centos)
33-
sudo bash scripts/init-vim-centos.sh
34-
;;
35-
Ubuntu)
36-
sudo bash scripts/init-vim-ubuntu.sh
37-
;;
38-
MacOSX)
39-
bash scripts/init-vim-osx.sh
40-
echoo ">>> Install fonts for powerline ..."
41-
bash fonts/install-fonts.sh
42-
esac
43-
sudo bash install-plugins.sh init
44-
echoo "Install finished. If you need orther language support, please run: ./install-plugins.sh --help"
45-
else
46-
echoo "User cancels the operation."
47-
fi
27+
backup
28+
case $platform in
29+
Centos)
30+
sudo bash scripts/init-vim-centos.sh
31+
;;
32+
Ubuntu)
33+
sudo bash scripts/init-vim-ubuntu.sh
34+
;;
35+
MacOSX)
36+
bash scripts/init-vim-osx.sh
37+
echoo ">>> Install fonts for powerline ..."
38+
bash fonts/install-fonts.sh
39+
esac
40+
41+
sudo bash install-plugins.sh init
42+
43+
echoo "Install finished. If you need orther language support, please run: ./install-plugins.sh --help"

0 commit comments

Comments
 (0)