Permalink
Browse files

Update script for CI

  • Loading branch information...
1 parent f9dea2d commit 1dad59460b9bafa027778dc69ee548b76f890506 @lambdalisue committed Sep 21, 2016
Showing with 115 additions and 45 deletions.
  1. +11 −0 .ci/install.sh
  2. +23 −0 .ci/installer/linux.sh
  3. +9 −0 .ci/installer/osx.sh
  4. +29 −0 .ci/script.sh
  5. +25 −18 .travis.yml
  6. +3 −0 .vintrc.yaml
  7. +15 −16 appveyor.yml
  8. +0 −11 scripts/install-vim.sh
View
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -ex
+root=$(cd $(dirname $0); pwd)
+git config --global user.name "ci"
+git config --global user.email ci@example.com
+git clone -q --depth 1 --single-branch https://github.com/thinca/vim-themis /tmp/vim-themis
+git clone -q --depth 1 --single-branch https://github.com/vim-jp/vital.vim /tmp/vital
+PYTHONUSERBASE=$HOME/.local pip install --user vim-vint
+if [ "$VERSION" != "SYSTEM" ]; then
+ bash $root/installer/${TRAVIS_OS_NAME}.sh
+fi
@@ -0,0 +1,23 @@
+#!/bin/bash
+tmp=$(mktemp -d)
+if [[ "$VERSION" == "nvim" ]]; then
+ url=https://github.com/neovim/neovim
+ git clone -q --depth 1 --single-branch $url $tmp
+ cd $tmp
+ make -j2 CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH=$HOME/neovim" CMAKE_BUILD_TYPE=Release
+else
+ url=https://github.com/vim/vim
+ ext=$([ "$VERSION" == "HEAD" ] && echo '' || echo "-b $VERSION")
+ git clone -q --depth 1 --single-branch $ext $url $tmp
+ cd $tmp
+ ./configure --prefix="$HOME/vim" \
+ --enable-fail-if-missing \
+ --with-features=huge \
+ --enable-perlinterp \
+ --enable-rubyinterp \
+ --enable-pythoninterp \
+ --enable-python3interp \
+ --enable-luainterp
+ make -j2
+fi
+make install
@@ -0,0 +1,9 @@
+#!/bin/bash
+set -ex
+brew update
+if [[ "$VERSION" == "nvim" ]]; then
+ brew install neovim/neovim/neovim
+else
+ brew install lua
+ brew install vim --with-lua
+fi
View
@@ -0,0 +1,29 @@
+#!/bin/bash
+set -x
+export PATH="$HOME/neovim/bin:$HOME/vim/bin:$PATH"
+if [[ -d /tmp/vim-themis ]]; then
+ export THEMIS_HOME="/tmp/vim-themis"
+ export PATH="/tmp/vim-themis/bin:$PATH"
+fi
+if [[ "$VERSION" == "nvim" ]]; then
+ export THEMIS_VIM="nvim"
+ export THEMIS_ARGS="-e -s --headless"
+else
+ export THEMIS_VIM="vim"
+fi
+
+uname -a
+which -a $THEMIS_VIM
+which -a python
+which -a vint
+which -a themis
+
+$THEMIS_VIM --version
+$THEMIS_VIM --cmd "try | helptags doc/ | catch | cquit | endtry" --cmd quit
+
+python --version
+vint --version
+vint autoload
+
+themis --version
+themis --reporter dot --runtimepath /tmp/vital
View
@@ -1,25 +1,32 @@
-language: viml
-
-sudo: required
-dist: trusty
-
+language: generic
+sudo: false
+env:
+ - VERSION=SYSTEM
+ - VERSION=HEAD
+ - VERSION=v7.4.2137
+ - VERSION=nvim
os:
- linux
- osx
+osx_image: xcode8
-install:
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install macvim --with-override-system-vim; fi
+addons:
+ apt:
+ packages:
+ - vim
+ - gettext
+ - libncurses5-dev
+ - libacl1-dev
+ - libgpm-dev
+ - libperl-dev
+ - ruby-dev
+ - python-dev
+ - python3-dev
+ - lua5.2
+ - liblua5.2-dev
-before_script:
- - vim --version
- - git clone --depth 1 https://github.com/Shougo/vimproc.vim /tmp/vimproc
- - git clone --depth 1 https://github.com/vim-jp/vital.vim /tmp/vital
- - git clone --depth 1 https://github.com/syngan/vim-vimlint /tmp/vim-vimlint
- - git clone --depth 1 https://github.com/ynkdir/vim-vimlparser /tmp/vim-vimlparser
- - git clone --depth 1 --branch v1.5.1 https://github.com/thinca/vim-themis /tmp/vim-themis
- - (cd /tmp/vimproc && make)
+install:
+ - bash .ci/install.sh
script:
- - vim --cmd "try | helptags doc/ | catch | cquit | endtry" --cmd quit
- - sh /tmp/vim-vimlint/bin/vimlint.sh -l /tmp/vim-vimlint -p /tmp/vim-vimlparser -e EVL103=1 -e EVL102.l:_=1 -c func_abort=1 autoload
- - sh /tmp/vim-themis/bin/themis --runtimepath /tmp/vimproc --runtimepath /tmp/vital --reporter dot
+ - bash .ci/script.sh
View
@@ -0,0 +1,3 @@
+policies:
+ ProhibitUnnecessaryDoubleQuote:
+ enabled: false
View
@@ -1,26 +1,25 @@
-# disable deployment
-deploy: off
version: '{build}'
clone_depth: 1
environment:
matrix:
- - VIM_URL: http://files.kaoriya.net/vim/vim74-kaoriya-win64.zip
- #- VIM_URL: http://files.kaoriya.net/vim/2011/vim73-kaoriya-win64-20110306.zip
+ - VIM_URL: http://vim-jp.org/redirects/koron/vim-kaoriya/latest/win64/
install:
- - 'cd %APPVEYOR_BUILD_FOLDER%'
- - 'appveyor DownloadFile %VIM_URL% -FileName %TEMP%\vim.zip'
- - '7z x -o%TEMP% %TEMP%\vim.zip > nul'
- - ps: $Env:THEMIS_VIM = (Get-ChildItem $Env:TEMP | Select-Object -First 1).FullName + '\vim.exe'
-
- - 'git clone --depth 1 https://github.com/vim-jp/vital.vim %TEMP%\vital'
- - 'git clone --depth 1 --branch ver.9.2 https://github.com/Shougo/vimproc.vim %TEMP%\vimproc'
- - 'appveyor DownloadFile https://github.com/Shougo/vimproc.vim/releases/download/ver.9.2/vimproc_win64.dll -FileName %TEMP%\vimproc\lib\vimproc_win64.dll'
-
- - 'git clone --depth 1 --branch v1.5.1 https://github.com/thinca/vim-themis %TEMP%\vim-themis'
+ - ps: |
+ $zip = $Env:APPVEYOR_BUILD_FOLDER + '\vim.zip'
+ $vim = $Env:APPVEYOR_BUILD_FOLDER + '\vim\'
+ $redirect = Invoke-WebRequest -URI $Env:VIM_URL
+ (New-Object Net.WebClient).DownloadFile($redirect.Links[0].href, $zip)
+ [Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') > $null
+ [System.IO.Compression.ZipFile]::ExtractToDirectory($zip, $vim)
+ $Env:THEMIS_VIM = $vim + (Get-ChildItem $vim).Name + '\vim.exe'
- 'reg copy HKLM\SOFTWARE\Python\PythonCore\2.7 HKLM\SOFTWARE\Python\PythonCore\2.7-32 /s /reg:32'
- 'reg copy HKLM\SOFTWARE\Python\PythonCore\2.7 HKLM\SOFTWARE\Python\PythonCore\2.7-32 /s /reg:64'
+ - 'git clone -q --depth 1 --single-branch https://github.com/vim-jp/vital.vim %TEMP%\vital'
+ - 'git clone -q --depth 1 --single-branch https://github.com/thinca/vim-themis %TEMP%\vim-themis'
+ - 'git config --global user.name "Appveyor"'
+ - 'git config --global user.email appveyor@example.com'
build: off
test_script:
- '%THEMIS_VIM% --version'
- - '%TEMP%\vim-themis\bin\themis.bat -v'
- - '%TEMP%\vim-themis\bin\themis.bat --runtimepath %TEMP%\vimproc --runtimepath %TEMP%\vital --reporter dot'
+ - '%TEMP%\vim-themis\bin\themis.bat --reporter dot --runtimepath %TEMP%\vital'
+deploy: off
@@ -1,11 +0,0 @@
-#!/bin/sh
-set -e
-if [ x"$HEAD" = "xyes" ]; then
- git clone --depth 1 https://github.com/vim/vim /tmp/vim
- cd /tmp/vim
- ./configure --prefix="$HOME/vim" --with-features=huge \
- --enable-perlinterp --enable-pythoninterp --enable-python3interp \
- --enable-rubyinterp --enable-luainterp --enable-fail-if-missing
- make -j2
- make install
-fi

0 comments on commit 1dad594

Please sign in to comment.