forked from amidaware/tacticalrmm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
48 lines (41 loc) · 1.31 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
trigger:
- master
- 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: |
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
cd /home/steam/myagent/_work/1/s/api/tacticalrmm
pip install --upgrade pip
pip install -r requirements.txt
displayName: "Install Python Dependencies"
- script: |
cd /home/steam/myagent/_work/1/s/api
source env/bin/activate
cd /home/steam/myagent/_work/1/s/api/tacticalrmm
python manage.py test -v 2
displayName: "Run django tests"
- script: |
rm -rf /home/steam/myagent/_work/1/s/web/node_modules
cd /home/steam/myagent/_work/1/s/web
npm install
displayName: "Install Frontend"
- script: |
cd /home/steam/myagent/_work/1/s/web
npm run test:unit
displayName: "Run Vue Tests"