1
0
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:
2018-05-03 12:55:44 +00:00
parent 37c106fb06
commit d3ae73cb4a
2 changed files with 11 additions and 2 deletions

View File

@@ -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:

View 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