forked from rubygems/rubygems.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (49 loc) · 1.12 KB
/
.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: ruby
cache:
bundler: true
directories:
- reports
- vendor/cache
rvm:
- 2.3.5
- ruby-head
addons:
apt:
sources:
- elasticsearch-5.x
packages:
- elasticsearch
- oracle-java8-set-default
services:
- elasticsearch
- memcached
- docker
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:
- gem install bundler-audit brakeman
- bundle audit update
- cp config/database.yml.example config/database.yml
- bundle exec rake db:create db:migrate db:test:prepare
script:
- bundle exec rails test
- bundle exec rake rubocop
- bundle audit check
- brakeman -c config/brakeman.yml -o /dev/stdout
- bundle exec cap -T > /dev/null
- script/build_docker.sh
env:
- RUBYGEMS_VERSION=2.6.10
- RUBYGEMS_VERSION=latest
matrix:
allow_failures:
- env: "RUBYGEMS_VERSION=latest"
- rvm: ruby-head
fast_finish: true