-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (36 loc) · 885 Bytes
/
.gitlab-ci.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
image: "ruby:2.4.3"
services:
- postgres:10.1
variables:
DATABASE_URL: "postgresql://postgres:postgres@postgres/postgres"
cache:
paths:
- vendor
before_script:
- ruby -v
rspec:
script:
- echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' >> /etc/apt/sources.list.d/pgdg.list
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
- apt-get update -qq
- apt-get install -y postgresql-client-10
- gem install bundler --no-doc
- bundle install --jobs $(nproc) "${FLAGS[@]}"
- rails db:migrate
- bundle exec rspec
rubocop:
script:
- gem install rubocop rubocop-rspec
- rubocop
brakeman:
script:
- gem install brakeman
- brakeman
bundle_audit:
script:
- gem install bundler-audit
- bundle audit
fasterer:
script:
- gem install fasterer
- fasterer