haml--haml/bin/test

25 lines
325 B
Plaintext
Raw Normal View History

2015-11-27 17:03:55 +00:00
#!/bin/bash
VERSIONS=(
2016-05-20 13:19:44 +00:00
2.1.10
2.2.5
2.3.1
2015-11-27 17:03:55 +00:00
)
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
2015-11-27 17:03:55 +00:00
}
for version in ${VERSIONS[@]}; do
test_with $version
done