summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/docker/debian10/install_rvm.sh
blob: c6fff70d02406bcd8e06b92343f5b57518421f5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

apt-get install -y $(grep '^[^#]\+$' /root/rvm_packages.lst)

gpg2 --keyserver hkps://keyserver.ubuntu.com \
     --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
                 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

curl -sSL https://get.rvm.io | bash -s stable

# keep version in sync with `env_debian*_ninja.sh`
/usr/local/rvm/bin/rvm install ruby-2.7.0

for p in archives examples gem-cache log src; do
    touch /usr/local/rvm/${p}/.tar_exclude
done

tar -C /usr/local --exclude-tag-under=.tar_exclude -cf /root/rvm.tar rvm