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 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.5.5'
  15. - '2.6.2'
  16. env:
  17. - CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
  18. - CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"'
  19. # Used for testing the remote data service
  20. - CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content" REMOTE_DB=1'
  21. - CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content" REMOTE_DB=1'
  22. matrix:
  23. fast_finish: true
  24. jobs:
  25. # build docker image
  26. include:
  27. - env: CMD="/usr/bin/docker-compose build" DOCKER="true"
  28. # we do not need any setup
  29. before_install: skip
  30. install: skip
  31. before_script:
  32. - curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > docker-compose
  33. - chmod +x docker-compose
  34. - sudo mv docker-compose /usr/bin
  35. before_install:
  36. - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
  37. - rake --version
  38. # Fail build if msftidy is not successful
  39. - ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
  40. - ls -la ./.git/hooks
  41. - ./.git/hooks/post-merge
  42. # Update the bundler
  43. - gem update --system
  44. - gem install bundler
  45. before_script:
  46. - cp config/database.yml.travis config/database.yml
  47. - bundle exec rake --version
  48. - bundle exec rake db:create
  49. - bundle exec rake db:migrate
  50. # fail build if db/schema.rb update is not committed
  51. - git diff --exit-code db/schema.rb
  52. script:
  53. - echo "${CMD}"
  54. # we need travis_wait because the Docker build job can take longer than 10 minutes
  55. #- if [[ "${DOCKER}" == "true" ]]; then echo "Starting Docker build job"; travis_wait 40 "${CMD}"; else bash -c "${CMD}"; fi
  56. # docker_wait is currently broken on travis-ci, so let's just run CMD directly for now
  57. - bash -c "${CMD}"
  58. notifications:
  59. irc: "irc.freenode.org#msfnotify"
  60. git:
  61. depth: 5
  62. # Blacklist certain branches from triggering travis builds
  63. branches:
  64. except:
  65. - gh-pages
  66. - metakitty
  67. services:
  68. - docker