2016-12-23 23:43:00 +01:00
|
|
|
dist: trusty
|
2016-03-02 22:57:53 +01:00
|
|
|
sudo: false
|
|
|
|
group: stable
|
2014-12-31 20:25:48 +01:00
|
|
|
bundler_args: --without coverage development pcap
|
2014-12-31 21:00:11 +01:00
|
|
|
cache: bundler
|
2016-03-07 20:25:37 +01:00
|
|
|
addons:
|
2016-12-23 23:32:48 +01:00
|
|
|
postgresql: '9.6'
|
2016-03-07 20:25:37 +01:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libpcap-dev
|
|
|
|
- graphviz
|
|
|
|
language: ruby
|
|
|
|
rvm:
|
2020-04-15 14:57:49 +02:00
|
|
|
- '2.5.8'
|
|
|
|
- '2.6.6'
|
2016-03-07 20:25:37 +01:00
|
|
|
|
2014-08-27 23:50:25 +02:00
|
|
|
env:
|
2017-06-20 21:02:32 +02:00
|
|
|
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
|
|
|
|
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"'
|
2018-05-07 17:50:10 +02:00
|
|
|
# Used for testing the remote data service
|
2018-04-27 00:47:54 +02:00
|
|
|
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content" REMOTE_DB=1'
|
2019-01-18 19:12:42 +01:00
|
|
|
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content" REMOTE_DB=1'
|
2014-09-03 02:07:39 +02:00
|
|
|
|
2014-11-17 15:33:05 +01:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2017-09-29 09:45:38 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
# build docker image
|
2017-04-22 02:10:00 +02:00
|
|
|
include:
|
2018-09-18 00:02:06 +02:00
|
|
|
- env: CMD="/usr/bin/docker-compose build" DOCKER="true"
|
2017-09-29 09:45:38 +02:00
|
|
|
# we do not need any setup
|
|
|
|
before_install: skip
|
|
|
|
install: skip
|
2018-09-18 00:02:06 +02:00
|
|
|
before_script:
|
|
|
|
- curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > docker-compose
|
|
|
|
- chmod +x docker-compose
|
|
|
|
- sudo mv docker-compose /usr/bin
|
2013-02-19 22:41:31 +01:00
|
|
|
before_install:
|
2014-12-05 20:29:18 +01:00
|
|
|
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
2014-01-06 19:47:36 +01:00
|
|
|
- rake --version
|
2015-02-11 20:48:13 +01:00
|
|
|
# Fail build if msftidy is not successful
|
2015-02-11 20:40:53 +01:00
|
|
|
- ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
|
|
|
|
- ls -la ./.git/hooks
|
|
|
|
- ./.git/hooks/post-merge
|
2017-05-22 21:43:29 +02:00
|
|
|
# Update the bundler
|
2019-12-16 17:53:08 +01:00
|
|
|
- gem update --system 3.0.6
|
2019-01-03 20:50:48 +01:00
|
|
|
- gem install bundler
|
2014-04-03 17:41:42 +02:00
|
|
|
before_script:
|
2013-03-15 14:48:20 +01:00
|
|
|
- cp config/database.yml.travis config/database.yml
|
2014-01-06 19:29:50 +01:00
|
|
|
- bundle exec rake --version
|
|
|
|
- bundle exec rake db:create
|
|
|
|
- bundle exec rake db:migrate
|
2014-11-14 16:57:03 +01:00
|
|
|
# fail build if db/schema.rb update is not committed
|
2017-05-22 21:43:29 +02:00
|
|
|
- git diff --exit-code db/schema.rb
|
|
|
|
script:
|
|
|
|
- echo "${CMD}"
|
2017-09-29 09:45:38 +02:00
|
|
|
# we need travis_wait because the Docker build job can take longer than 10 minutes
|
2018-09-18 04:32:35 +02:00
|
|
|
#- if [[ "${DOCKER}" == "true" ]]; then echo "Starting Docker build job"; travis_wait 40 "${CMD}"; else bash -c "${CMD}"; fi
|
|
|
|
# docker_wait is currently broken on travis-ci, so let's just run CMD directly for now
|
2018-09-18 00:02:06 +02:00
|
|
|
- bash -c "${CMD}"
|
2012-11-09 22:02:09 +01:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
irc: "irc.freenode.org#msfnotify"
|
|
|
|
|
2013-01-24 22:48:04 +01:00
|
|
|
git:
|
2013-09-17 00:23:16 +02:00
|
|
|
depth: 5
|
2014-12-03 20:58:06 +01:00
|
|
|
|
|
|
|
# Blacklist certain branches from triggering travis builds
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- gh-pages
|
2016-03-31 23:40:15 +02:00
|
|
|
- metakitty
|
2017-04-22 02:10:00 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|