This commit is contained in:
Eric Schultz 2018-09-07 13:09:20 -05:00
parent f7b7fdad8a
commit 9fb2b796e8
4 changed files with 20 additions and 2 deletions

View file

@ -10,4 +10,4 @@ before_install:
- cp .env.template .env
script:
- docker-compose -f docker/build/docker-compose.yml run build script/test.sh
- docker-compose -f docker/build/docker-compose.yml -e RACK_ENV=ci -e RAILS_ENV=ci run build script/test.sh

View file

@ -30,6 +30,16 @@ test:
username: admin
password: password
host: <%= ENV['DATABASE_HOST'] || 'localhost' %>
ci:
adapter: postgresql
encoding: unicode
database: commitchange_test
pool: 5
username: admin
password: password
host: <%= ENV['DATABASE_HOST'] || 'localhost' %>
# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn't need configuration. Windows does not have

8
config/environments/ci.rb Executable file
View file

@ -0,0 +1,8 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
require 'config/environments/test.rb'
Commitchange::Application.configure do
config.log_level = :info
end

View file

@ -1,2 +1,2 @@
#!/bin/bash
rake db:create db:structure:load test:prepare && rake spec && npx jest && npm run build-all
npm install && rake db:create db:structure:load test:prepare && rake spec && npx jest && npm run build-all