language: python
dist: xenial
services:
  - docker
before_script:
  - docker-compose up -d
  - docker-compose exec chris_dev_db sh -c 'while ! mysqladmin -uroot -prootp status 2> /dev/null; do sleep 5; done;'
  - docker-compose exec chris_dev_db mysql -uroot -prootp -e 'GRANT ALL PRIVILEGES ON *.* TO "chris"@"%"'
  - docker-compose exec chris_dev python manage.py migrate
# command to run both Unit and Integration tests
script:
  - docker-compose exec chris_dev python manage.py test
notifications:
  slack: fnndsc:gGPIVAOtMikWomA1EKrVYIjO

language: python
dist: xenial
services:
  - docker
before_script:
  - docker build -t fnndsc/chris_dev_backend . #TODO: ravig, Remove this.Tagging local image as fnndsc to avoid confusion in docker compose
  - docker-compose up -d
  - docker-compose exec chris_dev_db sh -c 'while ! mysqladmin -uroot -prootp status 2> /dev/null; do sleep 5; done;'
  - docker-compose exec chris_dev_db mysql -uroot -prootp -e 'GRANT ALL PRIVILEGES ON *.* TO "chris"@"%"'
  - docker-compose exec chris_dev python manage.py migrate
# command to run both Unit and Integration tests
script:
  - docker-compose exec chris_dev python manage.py test
notifications:
  slack: fnndsc:gGPIVAOtMikWomA1EKrVYIjO

Use local docker image for testing
Use local docker image for testing
