Introduction

  1. Clone django-ftp-deploy app:

    git clone https://bitbucket.org/lpakula/django-ftp-deploy.git
    
  2. Add django-ftp-deploy folder to your Python path

  3. Install application as described in installation section.

  4. Install all requirements for dev environment. Go to django-ftp-deploy directory and use pip:

    pip install -r requirements/dev.txt
    
  5. Add FTP_TEST_SETTINGS configuration to your settings:

    #settings.py
    
    FTP_TEST_SETTINGS =  {
     'host'      : '',
     'username'  : '',
     'password'  : '',
     'path'      : '',
    }
    
  6. Make sure DEPLOY_BITBUCKET_SETTINGS and DEPLOY_GITHUB_SETTINGS both have been added to settings file.

  7. Install PhantomJS for intergration tests.

  8. Start Developing!

Testing

Application use Nose as test runner and Fabric library to automate testing process.

In order to run tests go into tests directory and:

  • all tests:

    fab test
    
  • all tests with coverage:

    fab testc
    
  • Unit Tests only:

    fab testu
    
  • Integration Tests only:

    fab testi
    

Unit Tests and Integration Tests accepts module attibute to specify module to test:

fab testu:module_name