1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/test
Takashi Kokubun c0190ef3ce Change local CI test script name
because Rakefile execution locks Ruby version
2015-06-07 17:32:15 +09:00

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