Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update vm_setup script #218

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/scip-ruby/vm_setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
sudo apt update
sudo apt autoremove
sudo apt upgrade
sudo apt install wget unzip ripgrep fd-find gcc libncurses5-dev libncursesw5-dev xxd libtinfo5 make zlib1g-dev autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev
sudo apt install -y wget unzip ripgrep fd-find gcc libncurses5-dev libncursesw5-dev xxd libtinfo5 make zlib1g-dev autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev

rm -rf ~/.rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv --depth=1
(cd ~/.rbenv && src/configure && make -C src)
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv
echo 'eval "$(rbenv init - bash)"' >> ~/.bashrc
echo 'eval "$(rbenv init - zsh)"' >> ~/.zshenv
source ~/.bashrc

git clone https://github.com/rbenv/ruby-build.git --depth=1
Expand All @@ -24,7 +26,7 @@ rm -rf ruby-build

curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash

MAKE_OPTS="-j $(getconf _NPROCESSORS_ONLN)" rbenv install 2.7.2
MAKE_OPTS="-j $(getconf _NPROCESSORS_ONLN)" "$HOME/.rbenv/bin/rbenv" install 3.2.2

git clone https://github.com/sourcegraph/scip-ruby.git
cd scip-ruby
Expand All @@ -38,4 +40,4 @@ mkdir -p "$CACHE_DIR/output-bases/${JOB_NAME}" "$CACHE_DIR/build" "$CACHE_DIR/re
echo "build --disk_cache=$CACHE_DIR/build --repository_cache=$CACHE_DIR/repos"
echo "test --disk_cache=$CACHE_DIR/build --repository_cache=$CACHE_DIR/repos"
echo "build --define SCIP_RUBY_CACHE_RUBY_DIR='$PWD/.cache_ruby' --define SCIP_RUBY_RBENV_EXE='$(which rbenv)' --define EXTERNAL_GEM_EXE='$(which gem)"
} > .bazelrc.local
} > .bazelrc.local
Loading