2015-01-01 03:25:48 +08:00
|
|
|
bundler_args: --without coverage development pcap
|
2015-01-01 04:00:11 +08:00
|
|
|
cache: bundler
|
2014-08-28 05:50:25 +08:00
|
|
|
env:
|
2014-12-06 03:37:18 +08:00
|
|
|
- RAKE_TASKS="cucumber cucumber:boot"
|
|
|
|
- RAKE_TASKS=spec SPEC_OPTS="--tag content"
|
|
|
|
- RAKE_TASKS=spec SPEC_OPTS="--tag ~content"
|
2014-09-03 08:07:39 +08:00
|
|
|
|
2012-11-07 22:29:44 +08:00
|
|
|
language: ruby
|
2014-11-17 22:33:05 +08:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2013-02-20 05:41:31 +08:00
|
|
|
before_install:
|
2014-12-06 03:29:18 +08:00
|
|
|
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
2014-01-07 02:47:36 +08:00
|
|
|
- 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
|
2014-04-03 23:41:42 +08:00
|
|
|
before_script:
|
2013-03-15 21:48:20 +08:00
|
|
|
- cp config/database.yml.travis config/database.yml
|
2014-01-07 02:29:50 +08:00
|
|
|
- bundle exec rake --version
|
|
|
|
- bundle exec rake db:create
|
|
|
|
- bundle exec rake db:migrate
|
2014-11-15 02:50:27 +08:00
|
|
|
script:
|
2014-11-14 23:57:03 +08:00
|
|
|
# fail build if db/schema.rb update is not committed
|
2014-12-06 03:37:18 +08:00
|
|
|
- git diff --exit-code && bundle exec rake $RAKE_TASKS
|
2015-01-01 03:26:35 +08:00
|
|
|
sudo: false
|
2012-11-07 22:29:44 +08:00
|
|
|
rvm:
|
2014-09-08 10:55:13 +08:00
|
|
|
- '2.1'
|
2012-11-10 05:02:09 +08:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
irc: "irc.freenode.org#msfnotify"
|
|
|
|
|
2013-01-25 05:48:04 +08:00
|
|
|
git:
|
2013-09-17 06:23:16 +08:00
|
|
|
depth: 5
|
2014-12-04 03:58:06 +08:00
|
|
|
|
|
|
|
# Blacklist certain branches from triggering travis builds
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- gh-pages
|
|
|
|
- metakitty
|