-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (36 loc) · 961 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
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
# License: GNU AGPL-3+ (see full text in LICENSE file)
dist: bionic
language:
- ruby
rvm:
### Zeitwerk is not fully compatible with < 2.5.4
### cf. https://github.com/Evolix/chexpire/pull/104
- 2.5
- 2.6
- 2.7
cache:
- bundler
- yarn
node_js: 12
sudo: required # required with chrome addon
addons:
chrome: stable
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE chexpire_test;'
- cp config/database.travis.yml config/database.yml
- cp config/secrets.example.yml config/secrets.yml
# Test configuration loaded from chexpire.defaults.yml,
# but chexpire.yml file is required
- touch config/chexpire.yml
install:
- bundle install
- yarn install
- rails db:create db:migrate
- rails webpacker:compile
script:
- bundle exec rubocop
- bundle exec rails test NO_COVERAGE=1
- bundle exec rails test:system NO_COVERAGE=1