Skip to content
This repository has been archived by the owner on Feb 20, 2018. It is now read-only.
/ vmmaster Public archive

Automatic virtual machines manager for selenium-based testing

License

Notifications You must be signed in to change notification settings

2gis/vmmaster

Repository files navigation

vmmaster

Build Status Coverage

Dependencies:

  • python 2.7 only
  • tox
  • postgresql

How to use?

Run application

  • install dependencies:
./install_dependencies.sh
sudo pip install tox
tox -e base
  • create base config:
cp ./config_template.py config.py
  • migrations and run:
.tox/bin/python manage.py migrations
.tox/bin/python manage.py runserver

Run in docker container

  • image build:
docker build --tag=<image_name>:<image_version> .
  • create enviroment variables file or put environment variables in docker run command

  • run migrations:

docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock --privileged --net=host <image_name>:<images_version> python manage.py migrations
  • run container:
docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock --privileged --net=host <image_name>:<images_version> python manage.py runserver

Development

Environment

./install-hooks.sh

Linting

.tox/bin/flake8 vmmaster/ tests/

Unittests with coverage

tox -e unit-with-coverage

Open coverage/index.html in web browser.

Documentation

More information