mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
29 lines
709 B
Bash
29 lines
709 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Exit on any error.
|
||
|
set -e
|
||
|
|
||
|
test_version() {
|
||
|
version=$1
|
||
|
if [ "$version" == "jruby-1.7" ] ; then
|
||
|
# No conformance tests yet -- JRuby is too broken to run them.
|
||
|
bash --login -c \
|
||
|
"rvm install $version && rvm use $version && rvm get head && \
|
||
|
which ruby && \
|
||
|
git clean -f && \
|
||
|
gem install bundler && bundle && \
|
||
|
rake test"
|
||
|
else
|
||
|
bash --login -c \
|
||
|
"rvm install $version && rvm use $version && \
|
||
|
which ruby && \
|
||
|
git clean -f && \
|
||
|
gem install bundler && bundle && \
|
||
|
rake test &&
|
||
|
cd ../conformance && make test_ruby &&
|
||
|
cd ../ruby/compatibility_tests/v3.0.0 && ./test.sh"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
test_version $1
|