Mirror of metasploit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.travis.yml 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. dist: trusty
  2. sudo: false
  3. group: stable
  4. bundler_args: --without coverage development pcap
  5. cache: bundler
  6. addons:
  7. postgresql: '9.6'
  8. apt:
  9. packages:
  10. - libpcap-dev
  11. - graphviz
  12. language: ruby
  13. rvm:
  14. - '2.2'
  15. - '2.3.6'
  16. - '2.4.3'
  17. env:
  18. - CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
  19. - CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"'
  20. matrix:
  21. fast_finish: true
  22. jobs:
  23. # build docker image
  24. include:
  25. - env: CMD="docker-compose build" DOCKER="true"
  26. # we do not need any setup
  27. before_install: skip
  28. install: skip
  29. before_script: skip
  30. before_install:
  31. - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
  32. - rake --version
  33. # Fail build if msftidy is not successful
  34. - ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
  35. - ls -la ./.git/hooks
  36. - ./.git/hooks/post-merge
  37. # Update the bundler
  38. - gem install bundler
  39. before_script:
  40. - cp config/database.yml.travis config/database.yml
  41. - bundle exec rake --version
  42. - bundle exec rake db:create
  43. - bundle exec rake db:migrate
  44. # fail build if db/schema.rb update is not committed
  45. - git diff --exit-code db/schema.rb
  46. script:
  47. - echo "${CMD}"
  48. # we need travis_wait because the Docker build job can take longer than 10 minutes
  49. - if [[ "${DOCKER}" == "true" ]]; then echo "Starting Docker build job"; travis_wait 40 "${CMD}"; else bash -c "${CMD}"; fi
  50. notifications:
  51. irc: "irc.freenode.org#msfnotify"
  52. git:
  53. depth: 5
  54. # Blacklist certain branches from triggering travis builds
  55. branches:
  56. except:
  57. - gh-pages
  58. - metakitty
  59. services:
  60. - docker