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)
|
|
|
|
|
2018-05-23 14:41:08 +02:00
|
|
|
language:
|
|
|
|
- ruby
|
|
|
|
|
|
|
|
cache:
|
|
|
|
- bundler
|
|
|
|
- yarn
|
|
|
|
|
|
|
|
node_js: 9
|
|
|
|
|
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
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- cp config/database.example.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
|
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
|