mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Run travis tests with docker
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
sudo: required
|
||||
language: ruby
|
||||
services:
|
||||
- docker
|
||||
rvm:
|
||||
- 2.4.2
|
||||
env:
|
||||
- DB=sqlite
|
||||
script:
|
||||
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
||||
- bundle exec rake test
|
||||
#- RAILS_ENV=test bundle exec rake db:migrate --trace
|
||||
#- bundle exec rake test
|
||||
- bash bin/run-tests-with-docker.sh
|
||||
deploy:
|
||||
provider: heroku
|
||||
api_key:
|
||||
|
||||
5
bin/run-tests-with-docker.sh
Normal file
5
bin/run-tests-with-docker.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
project_dir="$(dirname $( dirname $(readlink -f ${BASH_SOURCE[0]})))"
|
||||
|
||||
docker build -f ${project_dir}/deploy/rails-prod-Dockerfile -t wrestlingdevtests ${project_dir}/.
|
||||
docker run -it wrestlingdevtests bash /rails/bin/run-all-tests.sh
|
||||
Reference in New Issue
Block a user