yaml
# .vexor.yml
env:
global:
- PYTHON_VERSION=3.8
jobs:
build:
script:
- python -m pip install -r requirements.txt
- python -m unittest discover
- coverage run -m unittest discover
after_script:
- coverage xml -i
deploy:
script:
- ssh user@server "cd /var/www && git pull origin master && python3 manage.py migrate && systemctl restart myapp.service"
notifications:
slack:
- channel: '#my-project'
on_success: change
on_failure: always