Sha256: 88873dd38eaf16f04f7ee3a63c06f81624d26b33962132383ea817a609dc9ae5

Contents?: true

Size: 1.47 KB

Versions: 4

Compression:

Stored size: 1.47 KB

Contents

#!/usr/bin/env bash

#    Copyright 2020 Couchbase, Inc.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.

PROJECT_ROOT="$( cd "$(dirname "$0"/../..)" >/dev/null 2>&1 ; pwd -P )"

set -x
set -e

CB_RUBY_VERSION=${CB_RUBY_VERSION:-2.7.1}

if  [ ! -x /usr/local/bin/ruby-install ]
then
    wget -O ruby-install-0.7.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.7.0.tar.gz
    tar -xzvf ruby-install-0.7.0.tar.gz
    cd ruby-install-0.7.0/
    sudo make install
fi

if  [ ! -e /usr/local/share/chruby/chruby.sh ]
then
    wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz
    tar -xzvf chruby-0.3.9.tar.gz
    cd chruby-0.3.9/
    sudo make install
fi

ruby-install --jobs=6 --no-reinstall ruby ${CB_RUBY_VERSION}

if [ ! -d ~/.cmake-3.17.2 ]
then
    wget https://github.com/Kitware/CMake/releases/download/v3.17.2/cmake-3.17.2-Linux-x86_64.tar.gz
    tar xvf cmake-3.17.2-Linux-x86_64.tar.gz
    mv cmake-3.17.2-Linux-x86_64 ~/.cmake-3.17.2
fi

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
couchbase-3.0.0.alpha.5-x86_64-linux bin/jenkins/install-dependencies
couchbase-3.0.0.alpha.5-universal-darwin-19 bin/jenkins/install-dependencies
couchbase-3.0.0.alpha.5-x86_64-darwin-19 bin/jenkins/install-dependencies
couchbase-3.0.0.alpha.5 bin/jenkins/install-dependencies