mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
c0190ef3ce
because Rakefile execution locks Ruby version
25 lines
281 B
Bash
Executable file
25 lines
281 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
trap 'rm .ruby-version' 0
|
|
|
|
VERSIONS=(
|
|
2.0.0
|
|
2.1.6
|
|
2.2.2
|
|
)
|
|
|
|
function test_with() {
|
|
version=$1
|
|
rbenv local $version
|
|
ruby -v
|
|
rake spec
|
|
}
|
|
|
|
for version in ${VERSIONS[@]}; do
|
|
test_with $version
|
|
done
|
|
|
|
rbenv local ${VERSIONS[2]}
|
|
ruby -v
|
|
rake rails:spec
|