forked from rubygems/rubygems.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (37 loc) · 860 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: ruby
cache:
bundler: true
directories:
- reports
- vendor/cache
rvm:
- 2.3.1
- ruby-head
services:
- elasticsearch
- memcached
sudo: false
bundler_args: --jobs=3 --retry=3 --without development
git:
submodules: true
before_install:
- git submodule update --init
- sh -c "if [ '$RUBYGEMS_VERSION' != 'latest' ]; then gem update --system $RUBYGEMS_VERSION; fi"
- gem --version
- script/install_toxiproxy.sh
before_script:
- cp config/database.yml.example config/database.yml
- bundle exec rake db:create db:migrate db:test:prepare
script:
- bundle exec rake
- bundle exec rake rubocop
- script/brakeman
- bundle exec cap -T > /dev/null
env:
- RUBYGEMS_VERSION=2.6.4
- RUBYGEMS_VERSION=latest
matrix:
allow_failures:
- env: "RUBYGEMS_VERSION=latest"
- rvm: ruby-head
fast_finish: true