language: ruby
rvm:
  - 1.8.7
  - 1.9.3
  - 2.0.0
  - ruby-head
  - rbx
before_install:
  - 'rm -rvf $rvm_path/gems/*/{bin,gems}/{rubygems-bundler-,executable-hooks-}* $rvm_path/gems/*/bin/ruby_*_wrapper'
  - hash -r
  - 'echo insecure >> ~/.curlrc'
  - 'curl -sSL https://get.smf.sh | sh'
  - 'export PATH=~/.sm/bin:$PATH'
  - 'gem install executable-hooks'
  - 'sm ext install gem mpapis/sm_gem'
install: gem install tf -v '>=0.4.1'
before_script:
  - unset BUNDLE_GEMFILE
script: tf --text test/dtf/*
notifications:
  irc:
    channels:
      - "irc.freenode.org#rubygems-bundler"
  email:
    recipients:
      - mpapis@gmail.com
    on_failure: change
matrix:
  include:
    - rvm: jruby-head
      env: 'JRUBY_OPTS="-X-C --server -J-XX:+TieredCompilation"'
      jdk: openjdk7
  allow_failures:
    - rvm: jruby-head
      env: 'JRUBY_OPTS="-X-C --server -J-XX:+TieredCompilation"'
      jdk: openjdk7
    - rvm: ruby-head
    - rvm: rbx
  fast_finish: true
