This commit is contained in:
wh1te909 2019-12-30 21:59:45 +00:00
parent d81a23ec95
commit fc4bb8a23b
1 changed files with 9 additions and 2 deletions

View File

@ -18,10 +18,17 @@ jobs:
steps:
- script: |
psql -c 'DROP DATABASE IF EXISTS pipeline;' -U postgres
psql -c 'CREATE DATABASE pipeline;' -U postgres
rm -rf /home/steam/myagent/_work/1/s/api/env
cd /home/steam/myagent/_work/1/s/api
python3.7 -m venv env
source env/bin/activate
python --version
cd /home/steam/myagent/_work/1/s/api/tacticalrmm
pip install --upgrade pip
pip install -r requirements-test.txt
python manage.py test -v 2
deactivate
python --version
displayName: 'Run Tests'
displayName: 'Install Dependencies and Run Tests'