-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (42 loc) · 1.16 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
dist: bionic
language: ruby
rvm:
- 2.7
cache: bundler
bundler_args: --path ../../vendor/bundle --without debug
jobs:
fast_finish: true
allow_failures:
- env: DB=sqlite3 DBC_VERBOSE=true
include:
- name: audit
gemfile: spec/gemfiles/rails_6_0.gemfile
before_script: ""
script:
- bundle show rubocop
- bundle exec rubocop
- cp $BUNDLE_GEMFILE Gemfile.lock
- bundle exec bundle-audit check --update -v
- gemfile: spec/gemfiles/rails_6_0.gemfile
rvm: 2.7
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 2.7
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_7_0.gemfile
rvm: 3.0
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
# - gemfile: spec/gemfiles/rails_6_0.gemfile
# rvm: 2.7
# env: DB=sqlite3 DBC_VERBOSE=true
#
env:
global:
- THREDDED_TESTAPP_SPROCKETS_JS=1
before_script:
- RAILS_ENV=test bundle exec rake db:create db:migrate
script:
- xvfb-run bundle exec rspec