Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit c6a4f10

Browse files
committed
add dciy config
1 parent 8cf0f42 commit c6a4f10

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

dciy.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[dciy.commands]
2+
prepare = ["./dciy_prepare.sh"]
3+
cibuild = ["./dciy_run.sh"]

dciy_prepare.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
export HYPER_DEV_GEM_SOURCE='https://gems.ruby-hyperloop.org'
3+
export RAILS_ENV="test"
4+
bundle update
5+
cd spec/test_app
6+
bundle update
7+
bundle exec rails db:setup
8+
cd ../..

dciy_run.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
export HYPER_DEV_GEM_SOURCE="https://gems.ruby-hyperloop.org"
3+
export RAILS_ENV="test"
4+
pwd
5+
echo
6+
echo "Running with Chrome headless"
7+
DRIVER=headless bundle exec rspec
8+
# echo
9+
# echo "Running with Firefox headless"
10+
# DRIVER=beheaded bundle exec rspec

0 commit comments

Comments
 (0)