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.3KB

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