mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Add local bin to test all rubies
This commit is contained in:
parent
f9463d7a2f
commit
73c0232145
1 changed files with 24 additions and 0 deletions
24
bin/test
Executable file
24
bin/test
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
VERSIONS=(
|
||||||
|
2.0.0
|
||||||
|
2.1.7
|
||||||
|
2.2.3
|
||||||
|
)
|
||||||
|
|
||||||
|
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
|
||||||
|
rake test
|
||||||
|
}
|
||||||
|
|
||||||
|
for version in ${VERSIONS[@]}; do
|
||||||
|
test_with $version
|
||||||
|
done
|
Loading…
Add table
Reference in a new issue