File: multi_test_inside_docker.sh

package info (click to toggle)
pry 0.15.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,772 kB
  • sloc: ruby: 21,692; sh: 17; makefile: 11
file content (24 lines) | stat: -rwxr-xr-x 422 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash -e

export ORIGINAL_PATH=$PATH

function test {
  version=$1
  export PATH=$ORIGINAL_PATH

  export GEM_HOME=/tmp/prytmp/$version
  export PATH=/opt/rubies/$version/bin:$GEM_HOME/bin:$PATH
  export RUBY_ROOT=/opt/rubies/$version

  if [ ! -f $GEM_HOME/bin/bundle ]; then
    gem install bundler --no-document
  fi

  bundle install --quiet
  rake test
}

for ruby in `ls /opt/rubies`
do
  test $ruby || :
done