1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/bin/test
2016-05-20 22:19:44 +09:00

24 lines
325 B
Bash
Executable file

#!/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