metasploit-framework/.travis.yml

75 lines
1.9 KiB
YAML
Raw Normal View History

2016-12-24 06:43:00 +08:00
dist: trusty
sudo: false
group: stable
2015-01-01 03:25:48 +08:00
bundler_args: --without coverage development pcap
2015-01-01 04:00:11 +08:00
cache: bundler
addons:
2016-12-24 06:32:48 +08:00
postgresql: '9.6'
apt:
packages:
- libpcap-dev
- graphviz
language: ruby
rvm:
2018-03-30 19:47:07 +08:00
- '2.3.7'
- '2.4.4'
2018-03-30 18:47:19 +08:00
- '2.5.1'
2014-08-28 05:50:25 +08:00
env:
2017-06-21 03:02:32 +08:00
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"'
# Used for testing the remote data service
2018-04-27 06:47:54 +08:00
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content" REMOTE_DB=1'
2014-09-03 08:07:39 +08:00
matrix:
fast_finish: true
2018-04-27 06:27:54 +08:00
exclude:
- rvm: '2.3.7'
2018-04-27 06:50:13 +08:00
env: CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content" REMOTE_DB=1'
2018-04-27 06:27:54 +08:00
- rvm: '2.4.4'
2018-04-27 06:50:13 +08:00
env: CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content" REMOTE_DB=1'
2017-09-29 15:45:38 +08:00
jobs:
# build docker image
2017-04-22 08:10:00 +08:00
include:
2017-11-29 04:59:26 +08:00
- env: CMD="docker-compose build" DOCKER="true"
2017-09-29 15:45:38 +08:00
# we do not need any setup
before_install: skip
install: skip
before_script: skip
2013-02-20 05:41:31 +08:00
before_install:
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
- rake --version
2015-02-12 03:48:13 +08:00
# Fail build if msftidy is not successful
2015-02-12 03:40:53 +08: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 15:45:38 +08:00
# we need travis_wait because the Docker build job can take longer than 10 minutes
2017-09-29 17:50:02 +08: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-04-01 05:40:15 +08:00
- metakitty
2017-04-22 08:10:00 +08:00
services:
- docker