tacticalrmm/azure-pipelines.yml

34 lines
795 B
YAML
Raw Normal View History

2019-12-30 21:32:07 +00:00
trigger:
- develop
jobs:
- job: setup_env
displayName: 'Setup Environment'
strategy:
matrix:
Ubuntu18:
AGENT_NAME: 'rmm-ubuntu18'
pool:
name: linux-vms
demands:
- agent.name -equals $(AGENT_NAME)
steps:
- script: |
2019-12-30 21:59:45 +00:00
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
2019-12-30 21:42:29 +00:00
cd /home/steam/myagent/_work/1/s/api
python3.7 -m venv env
source env/bin/activate
python --version
2019-12-30 21:59:45 +00:00
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
2019-12-30 21:42:29 +00:00
deactivate
2019-12-30 21:59:45 +00:00
displayName: 'Install Dependencies and Run Tests'