.travis.yml 997 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. bundler_args: --without coverage development pcap
  2. cache: bundler
  3. env:
  4. - RAKE_TASKS="cucumber cucumber:boot"
  5. - RAKE_TASKS=spec SPEC_OPTS="--tag content"
  6. - RAKE_TASKS=spec SPEC_OPTS="--tag ~content"
  7. language: ruby
  8. matrix:
  9. fast_finish: true
  10. before_install:
  11. - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
  12. - rake --version
  13. # Fail build if msftidy is not successful
  14. - ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
  15. - ls -la ./.git/hooks
  16. - ./.git/hooks/post-merge
  17. before_script:
  18. - cp config/database.yml.travis config/database.yml
  19. - bundle exec rake --version
  20. - bundle exec rake db:create
  21. - bundle exec rake db:migrate
  22. script:
  23. # fail build if db/schema.rb update is not committed
  24. - git diff --exit-code && bundle exec rake $RAKE_TASKS
  25. sudo: false
  26. rvm:
  27. - '1.9.3'
  28. - '2.1'
  29. notifications:
  30. irc: "irc.freenode.org#msfnotify"
  31. git:
  32. depth: 5
  33. # Blacklist certain branches from triggering travis builds
  34. branches:
  35. except:
  36. - gh-pages
  37. - metakitty