forked from rubygems/rubygems.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 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
language: ruby
cache:
bundler: true
directories:
- reports
- vendor/cache
rvm:
- 2.5.3
- ruby-head
addons:
apt:
sources:
- elasticsearch-5.x
packages:
- elasticsearch
- openjdk-8-jre-headless
postgresql: "9.6"
services:
- elasticsearch
- memcached
- docker
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 -v 0.6.1
- gem install brakeman -v 4.3.1
- 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
- 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