Skip to content

Commit b6fd0ce

Browse files
author
Tod Beardsley
authored
Merge pull request #16 from rapid7/master
Resync with upstream
2 parents 05e15ce + c137245 commit b6fd0ce

File tree

3,610 files changed

+18758
-10779
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,610 files changed

+18758
-10779
lines changed

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ docker-compose*.yml
55
docker/
66
!docker/msfconsole.rc
77
README.md
8+
.git/
9+
.github/
10+
.ruby-version
11+
.ruby-gemset
812

913
.bundle
1014
Gemfile.local
@@ -93,3 +97,6 @@ data/meterpreter/ext_server_pivot.*.dll
9397
# https://rapid7.github.io/metasploit-framework. It's an orphan branch.
9498
/metakitty
9599
.vagrant
100+
101+
# no need for rspecs
102+
spec/

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,6 @@ data/meterpreter/ext_server_pivot.*.dll
8888

8989
# local docker compose overrides
9090
docker-compose.local*
91+
92+
# Ignore python bytecode
93+
*.pyc

.travis.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,35 @@ rvm:
1616
- '2.4.1'
1717

1818
env:
19-
- RAKE_TASKS="cucumber cucumber:boot" CREATE_BINSTUBS=true
20-
- RAKE_TASKS=spec SPEC_OPTS="--tag content"
21-
- RAKE_TASKS=spec SPEC_OPTS="--tag ~content"
19+
# TODO: restore these tests when the code passes them!
20+
# - CMD='bundle exec rake cucumber cucumber:boot CREATE_BINSTUBS=true'
21+
- CMD='bundle exec rake spec SPEC_OPTS="--tag content"'
22+
- CMD='bundle exec rake spec SPEC_OPTS="--tag ~content"'
2223

2324
matrix:
2425
fast_finish: true
26+
include:
27+
- rvm: ruby-head
28+
env: CMD="docker-compose -f $TRAVIS_BUILD_DIR/docker-compose.yml build"
2529
before_install:
2630
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
2731
- rake --version
2832
# Fail build if msftidy is not successful
2933
- ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
3034
- ls -la ./.git/hooks
3135
- ./.git/hooks/post-merge
36+
# Update the bundler
37+
- gem install bundler
3238
before_script:
3339
- cp config/database.yml.travis config/database.yml
3440
- bundle exec rake --version
3541
- bundle exec rake db:create
3642
- bundle exec rake db:migrate
37-
script:
3843
# fail build if db/schema.rb update is not committed
39-
- git diff --exit-code db/schema.rb && bundle exec rake $RAKE_TASKS
44+
- git diff --exit-code db/schema.rb
45+
script:
46+
- echo "${CMD}"
47+
- bash -c "${CMD}"
4048

4149
notifications:
4250
irc: "irc.freenode.org#msfnotify"
@@ -49,3 +57,6 @@ branches:
4957
except:
5058
- gh-pages
5159
- metakitty
60+
61+
services:
62+
- docker

Gemfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ source 'https://rubygems.org'
33
# spec.add_runtime_dependency '<name>', [<version requirements>]
44
gemspec name: 'metasploit-framework'
55

6-
gem 'bit-struct', git: 'https://github.com/busterb/bit-struct', branch: 'ruby-2.4'
7-
gem 'method_source', git: 'https://github.com/banister/method_source', branch: 'master'
8-
gem 'rubyntlm', git: 'https://github.com/WinRb/rubyntlm', branch: 'master'
9-
106
# separate from test as simplecov is not run on travis-ci
117
group :coverage do
128
# code coverage for tests
@@ -19,7 +15,7 @@ group :development do
1915
# generating documentation
2016
gem 'yard'
2117
# for development and testing purposes
22-
gem 'pry', git: 'https://github.com/pry/pry', branch: 'master'
18+
gem 'pry'
2319
# module documentation
2420
gem 'octokit'
2521
# metasploit-aggregator as a framework only option for now

Gemfile.local.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ end
2727

2828
# Create a custom group
2929
group :local do
30-
# Use pry-debugger to step through code during development
31-
gem 'pry-debugger', '~> 0.2'
3230
# Add the lab gem so that the 'lab' plugin will work again
3331
gem 'lab', '~> 0.2.7'
3432
end

0 commit comments

Comments
 (0)