File: test

package info (click to toggle)
ruby-haml 6.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,004 kB
  • sloc: ruby: 9,908; sh: 23; makefile: 11
file content (24 lines) | stat: -rwxr-xr-x 325 bytes parent folder | download | duplicates (6)
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

VERSIONS=(
  2.1.10
  2.2.5
  2.3.1
)

set -e
trap 'echo "${VERSIONS[2]}" > .ruby-version' 0

function test_with() {
  version=$1
  rbenv local $version
  if ! bundle check > /dev/null; then
    bundle install
  fi
  ruby -v
  bundle exec rake test
}

for version in ${VERSIONS[@]}; do
  test_with $version
done