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
|
language: ruby
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
rvm:
|
rvm:
|
||||||
- 2.4.2
|
- 2.4.2
|
||||||
env:
|
env:
|
||||||
- DB=sqlite
|
- DB=sqlite
|
||||||
script:
|
script:
|
||||||
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
#- RAILS_ENV=test bundle exec rake db:migrate --trace
|
||||||
- bundle exec rake test
|
#- bundle exec rake test
|
||||||
|
- bash bin/run-tests-with-docker.sh
|
||||||
deploy:
|
deploy:
|
||||||
provider: heroku
|
provider: heroku
|
||||||
api_key:
|
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