travis-test.sh 732 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env bash
  2. # Exit on any error.
  3. set -e
  4. test_version() {
  5. version=$1
  6. if [ "$version" == "jruby-1.7" ] ; then
  7. # No conformance tests yet -- JRuby is too broken to run them.
  8. bash --login -c \
  9. "rvm install $version && rvm use $version && rvm get head && \
  10. which ruby && \
  11. git clean -f && \
  12. gem install bundler && bundle && \
  13. rake test"
  14. else
  15. bash --login -c \
  16. "rvm install $version && rvm use $version && \
  17. which ruby && \
  18. git clean -f && \
  19. gem install bundler && bundle && \
  20. rake test &&
  21. rake gc_test &&
  22. cd ../conformance && make test_ruby &&
  23. cd ../ruby/compatibility_tests/v3.0.0 && ./test.sh"
  24. fi
  25. }
  26. test_version $1