This repository has been archived by the owner. It is now read-only.
Automatic virtual machines manager for selenium-based testing
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
core
docs
git-hooks
migrations
tests
vmmaster
vmpool
.coveragerc
.dockerignore
.gitattributes
.gitignore
.travis.yml
Dockerfile
LICENSE
MANIFEST.in
README.md
codecov.yml
config_template.py
docker-entrypoint.sh
install-dependencies.sh
install-hooks.sh
logging.ini.template
manage.py
requirements.txt
tox.ini

README.md

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