fix
Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/342db9f7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/342db9f7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/342db9f7 Branch: refs/heads/master Commit: 342db9f7782957ee53e79d3ff3a6e2164c46a5b4 Parents: 1c33da3 Author: Injun Song <[email protected]> Authored: Fri Dec 2 16:49:57 2016 +0900 Committer: Injun Song <[email protected]> Committed: Fri Dec 2 16:49:57 2016 +0900 ---------------------------------------------------------------------- .travis.yml | 7 +++++++ .travis/hbase.sh | 5 ----- .travis/install-hbase.sh | 9 +++++++++ 3 files changed, 16 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/342db9f7/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index ce2b986..1f9a99e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,12 @@ language: scala +env: + - HBASE_VERSION=1.2.4 + +cache: + directories: + - $HOME/hbase + scala: - 2.11.8 http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/342db9f7/.travis/hbase.sh ---------------------------------------------------------------------- diff --git a/.travis/hbase.sh b/.travis/hbase.sh deleted file mode 100755 index 6b26c88..0000000 --- a/.travis/hbase.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -wget -q -O - http://mirror.navercorp.com/apache/hbase/stable/hbase-1.2.4-bin.tar.gz | tar xz -cd hbase-1.2.4 -bin/start-hbase.sh http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/342db9f7/.travis/install-hbase.sh ---------------------------------------------------------------------- diff --git a/.travis/install-hbase.sh b/.travis/install-hbase.sh new file mode 100755 index 0000000..aff32ec --- /dev/null +++ b/.travis/install-hbase.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +set -e + +if [ ! -d $HOME/hbase/bin ]; then + cd $HOME && wget -q -O - http://mirror.navercorp.com/apache/hbase/stable/hbase-$HBASE_VERSION-bin.tar.gz | tar xz + ln -s $HOME/hbase-$HBASE_VERSION $HOME/hbase + $HOME/hbase/bin/start-hbase.sh +fi
