language: python
python:
- '2.7'
- '3.3'
- pypy
install:
- pip install setuptools flake8 pylint
- gem install mdl
script:
- python setup.py build
- python setup.py test
- python setup.py install
- pylint -f colorized tests/ polysquarelinter/ --disable=r0903,R0904
- flake8 tests/ polysquarelinter/
- mdl .
- find polysquarelinter tests -type f -name "*.py" | xargs -L 1 polysquare-generic-file-linter
deploy:
  provider: pypi
  user: smspillaz
  password:
    secure: ZnhModnrfduaNAor01dfPy+y/46fY35DkNuLEeJxEGaXZE12TFLLd1OLwZ/9SJsSKKq2NVQ976ufXJ5O+WjfN/xCJHkGyeqxYhQzX5unkiEApOaVJzj3vrmjDSYM+cEnA3MA9L2mY096+VGnqieUEoxNePEhAUCzP8AyCX5+6XQ=
  on:
    repo: polysquare/polysquare-generic-file-linter
    branch: master

language: python
python:
- '2.7'
- '3.3'
- pypy
install:
- pip install setuptools flake8 pylint
- gem install mdl
script:
- python setup.py build
- python setup.py test
- python setup.py install
- pylint -f colorized tests/ polysquarelinter/ --disable=r0903,R0904
- flake8 tests/ polysquarelinter/
- mdl .
- find polysquarelinter tests -type f -name "*.py" | xargs -L 1 polysquare-generic-file-linter
after_success:
- rm -rf polysquare_generic_file_linter.egg-info/
- rm -rf build/
deploy:
  provider: pypi
  user: smspillaz
  password:
    secure: ZnhModnrfduaNAor01dfPy+y/46fY35DkNuLEeJxEGaXZE12TFLLd1OLwZ/9SJsSKKq2NVQ976ufXJ5O+WjfN/xCJHkGyeqxYhQzX5unkiEApOaVJzj3vrmjDSYM+cEnA3MA9L2mY096+VGnqieUEoxNePEhAUCzP8AyCX5+6XQ=
  on:
    repo: polysquare/polysquare-generic-file-linter
    branch: master

Remove build dir and package info dir before deployment
Remove build dir and package info dir before deployment
