From a1d35bf9b867ce514f8088f296df69a29af55d54 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 17 Apr 2016 13:34:57 +0900 Subject: [PATCH] use the cache feature of Travis --- .travis.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index df3f153..ae4b73f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,12 +4,19 @@ sudo: false install: - git clone --depth=1 https://github.com/thinca/vim-themis /tmp/themis - - git clone https://github.com/vim/vim /tmp/vim - - (cd /tmp/vim && ./configure --prefix=/tmp/vim-latest && make && make install) - - (cd /tmp/vim && git checkout . && git checkout v7.3 && ./configure --prefix=/tmp/vim-7.3 && make && make install) - - (cd /tmp/vim && git checkout . && git checkout v7.2.051 && ./configure --prefix=/tmp/vim-7.2.051 && make && make install) + - git clone https://github.com/vim/vim $HOME/vim + - (if ! test -d $HOME/vim-7.4/bin; then cd $HOME/vim && git checkout . && git checkout v7.4 && ./configure --prefix=$HOME/vim-7.4 && make && make install; fi) + - (if ! test -d $HOME/vim-7.3/bin; then cd $HOME/vim && git checkout . && git checkout v7.3 && ./configure --prefix=$HOME/vim-7.3 && make && make install; fi) + - (if ! test -d $HOME/vim-7.2.051/bin; then cd $HOME/vim && git checkout . && git checkout v7.2.051 && ./configure --prefix=$HOME/vim-7.2.051 && make && make install; fi) + +cache: + directories: + - $HOME/vim-7.4 + - $HOME/vim-7.3 + - $HOME/vim-7.2.051 script: - - PATH=/tmp/vim-latest/bin/:$PATH /tmp/themis/bin/themis --reporter spec - - PATH=/tmp/vim-7.3/bin/:$PATH /tmp/themis/bin/themis --reporter spec - - PATH=/tmp/vim-7.2.051/bin/:$PATH /tmp/themis/bin/themis --reporter spec + - /tmp/themis/bin/themis --reporter spec + - PATH=$HOME/vim-7.4/bin/:$PATH /tmp/themis/bin/themis --reporter spec + - PATH=$HOME/vim-7.3/bin/:$PATH /tmp/themis/bin/themis --reporter spec + - PATH=$HOME/vim-7.2.051/bin/:$PATH /tmp/themis/bin/themis --reporter spec