Mercurial > zeropaste
annotate bin/run_test @ 456:caac9bc885b4
More font size
author | nanaya <me@nanaya.pro> |
---|---|
date | Tue, 14 Nov 2017 22:49:16 +0900 |
parents | d31fe32da7a0 |
children |
rev | line source |
---|---|
300 | 1 #!/bin/sh |
2 | |
301
2fb00d365745
Add set -x to view commands executed for test.
edogawaconan <me@myconan.net>
parents:
300
diff
changeset
|
3 set -x |
2fb00d365745
Add set -x to view commands executed for test.
edogawaconan <me@myconan.net>
parents:
300
diff
changeset
|
4 |
300 | 5 test true = "$CI" && bi_params="--without development" |
6 bundle install $bi_params | |
7 | |
8 if ! test -f config/database.yml; then | |
9 cat << EOF > config/database.yml | |
10 test: | |
11 adapter: postgresql | |
12 database: zp_test | |
13 user: postgres | |
14 EOF | |
15 fi | |
16 | |
17 if ! test -f config/local_config.rb; then | |
18 # rake requires booting Rails which in turn requires availability of | |
19 # local_config. | |
20 touch config/local_config.rb | |
21 cat << EOF > config/local_config.rb | |
437 | 22 \$cfg[:standalone] = true |
23 \$cfg[:secret_key] = "$(bundle exec rake secret)" | |
300 | 24 EOF |
25 fi | |
26 | |
305 | 27 RAILS_ENV=test bundle exec rake db:setup |
300 | 28 bundle exec rake |