2018-08-02 00:09:29 +02:00
|
|
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
|
|
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
|
|
|
|
2020-09-05 22:01:33 +02:00
|
|
|
dist: bionic
|
|
|
|
|
2018-05-23 14:41:08 +02:00
|
|
|
language:
|
|
|
|
- ruby
|
2019-03-03 10:47:51 +01:00
|
|
|
rvm:
|
2019-08-17 01:17:15 +02:00
|
|
|
### Zeitwerk is not fully compatible with < 2.5.4
|
2019-03-04 13:33:35 +01:00
|
|
|
### cf. https://github.com/Evolix/chexpire/pull/104
|
2019-08-17 01:17:15 +02:00
|
|
|
- 2.5
|
2019-03-03 10:47:51 +01:00
|
|
|
- 2.6
|
2020-09-05 21:29:05 +02:00
|
|
|
- 2.7
|
2018-05-23 14:41:08 +02:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- bundler
|
|
|
|
- yarn
|
|
|
|
|
2020-09-05 21:29:05 +02:00
|
|
|
node_js: 12
|
2018-05-23 14:41:08 +02:00
|
|
|
|
2018-05-24 22:55:20 +02:00
|
|
|
sudo: required # required with chrome addon
|
2018-05-23 14:41:08 +02:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
|
|
|
|
2019-08-17 01:34:59 +02:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
2018-05-23 14:41:08 +02:00
|
|
|
before_install:
|
2019-08-17 01:40:55 +02:00
|
|
|
- mysql -e 'CREATE DATABASE chexpire_test;'
|
|
|
|
- cp config/database.travis.yml config/database.yml
|
2018-05-24 16:01:08 +02:00
|
|
|
- cp config/secrets.example.yml config/secrets.yml
|
2018-05-23 14:41:08 +02:00
|
|
|
|
2018-08-01 18:38:02 +02:00
|
|
|
# Test configuration loaded from chexpire.defaults.yml,
|
|
|
|
# but chexpire.yml file is required
|
|
|
|
- touch config/chexpire.yml
|
|
|
|
|
2018-05-23 14:41:08 +02:00
|
|
|
install:
|
|
|
|
- bundle install
|
|
|
|
- yarn install
|
2018-06-05 09:58:07 +02:00
|
|
|
- rails db:create db:migrate
|
2019-08-20 00:21:10 +02:00
|
|
|
- rails webpacker:compile
|
2018-05-23 14:41:08 +02:00
|
|
|
|
|
|
|
script:
|
|
|
|
- bundle exec rubocop
|
2018-06-02 15:44:34 +02:00
|
|
|
- bundle exec rails test NO_COVERAGE=1
|
|
|
|
- bundle exec rails test:system NO_COVERAGE=1
|