metasploit-framework/.travis.yml

68 lines
1.6 KiB
YAML
Raw Normal View History

2016-12-23 22:43:00 +00:00
dist: trusty
sudo: false
group: stable
2014-12-31 19:25:48 +00:00
bundler_args: --without coverage development pcap
2014-12-31 20:00:11 +00:00
cache: bundler
addons:
2016-12-23 22:32:48 +00:00
postgresql: '9.6'
apt:
packages:
- libpcap-dev
- graphviz
language: ruby
rvm:
- '2.2'
- '2.3.6'
- '2.4.3'
2014-08-27 21:50:25 +00:00
env:
2017-06-20 19:02:32 +00:00
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"'
2014-09-03 00:07:39 +00:00
matrix:
fast_finish: true
2017-09-29 07:45:38 +00:00
jobs:
# build docker image
2017-04-22 00:10:00 +00:00
include:
2017-11-28 20:59:26 +00:00
- env: CMD="docker-compose build" DOCKER="true"
2017-09-29 07:45:38 +00:00
# we do not need any setup
before_install: skip
install: skip
before_script: skip
2013-02-19 21:41:31 +00:00
before_install:
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
- rake --version
2015-02-11 19:48:13 +00:00
# Fail build if msftidy is not successful
2015-02-11 19:40:53 +00:00
- ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
- ls -la ./.git/hooks
- ./.git/hooks/post-merge
# Update the bundler
- gem install bundler
before_script:
- cp config/database.yml.travis config/database.yml
- bundle exec rake --version
- bundle exec rake db:create
- bundle exec rake db:migrate
# fail build if db/schema.rb update is not committed
- git diff --exit-code db/schema.rb
script:
- echo "${CMD}"
2017-09-29 07:45:38 +00:00
# we need travis_wait because the Docker build job can take longer than 10 minutes
2017-09-29 09:50:02 +00:00
- if [[ "${DOCKER}" == "true" ]]; then echo "Starting Docker build job"; travis_wait 40 "${CMD}"; else bash -c "${CMD}"; fi
notifications:
irc: "irc.freenode.org#msfnotify"
git:
depth: 5
# Blacklist certain branches from triggering travis builds
branches:
except:
- gh-pages
2016-03-31 21:40:15 +00:00
- metakitty
2017-04-22 00:10:00 +00:00
services:
- docker