2016-12-23 22:43:00 +00:00
|
|
|
dist: trusty
|
2016-03-02 21:57:53 +00:00
|
|
|
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
|
2016-03-07 19:25:37 +00:00
|
|
|
addons:
|
2016-12-23 22:32:48 +00:00
|
|
|
postgresql: '9.6'
|
2016-03-07 19:25:37 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libpcap-dev
|
|
|
|
- graphviz
|
|
|
|
language: ruby
|
|
|
|
rvm:
|
2017-01-12 15:21:11 +00:00
|
|
|
- '2.2'
|
2017-04-13 22:33:29 +00:00
|
|
|
- '2.3.4'
|
2017-01-12 15:21:11 +00:00
|
|
|
- '2.4.1'
|
2016-03-07 19:25:37 +00:00
|
|
|
|
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
|
|
|
|
2014-11-17 14:33:05 +00:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2017-04-22 00:10:00 +00:00
|
|
|
include:
|
|
|
|
- rvm: ruby-head
|
2017-04-22 00:33:33 +00:00
|
|
|
env: CMD="docker-compose -f $TRAVIS_BUILD_DIR/docker-compose.yml build"
|
2013-02-19 21:41:31 +00:00
|
|
|
before_install:
|
2014-12-05 19:29:18 +00:00
|
|
|
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
2014-01-06 18:47:36 +00:00
|
|
|
- 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
|
2017-05-22 19:43:29 +00:00
|
|
|
# Update the bundler
|
|
|
|
- gem install bundler
|
2014-04-03 15:41:42 +00:00
|
|
|
before_script:
|
2013-03-15 13:48:20 +00:00
|
|
|
- cp config/database.yml.travis config/database.yml
|
2014-01-06 18:29:50 +00:00
|
|
|
- bundle exec rake --version
|
|
|
|
- bundle exec rake db:create
|
|
|
|
- bundle exec rake db:migrate
|
2014-11-14 15:57:03 +00:00
|
|
|
# fail build if db/schema.rb update is not committed
|
2017-05-22 19:43:29 +00:00
|
|
|
- git diff --exit-code db/schema.rb
|
|
|
|
script:
|
|
|
|
- echo "${CMD}"
|
|
|
|
- bash -c "${CMD}"
|
2012-11-09 21:02:09 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
irc: "irc.freenode.org#msfnotify"
|
|
|
|
|
2013-01-24 21:48:04 +00:00
|
|
|
git:
|
2013-09-16 22:23:16 +00:00
|
|
|
depth: 5
|
2014-12-03 19:58:06 +00:00
|
|
|
|
|
|
|
# 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
|