new pipelines agent
This commit is contained in:
parent
6ab0ff9cb7
commit
b98fd39ad4
|
@ -4,11 +4,11 @@ trigger:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: setup_env
|
- job: setup_env
|
||||||
displayName: "Setup Environment"
|
displayName: "Setup"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
Ubuntu18:
|
Ubuntu20:
|
||||||
AGENT_NAME: "rmm-ubuntu18"
|
AGENT_NAME: "rmm-ubu20"
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
name: linux-vms
|
name: linux-vms
|
||||||
|
@ -21,29 +21,30 @@ jobs:
|
||||||
psql -c 'DROP DATABASE IF EXISTS test_pipeline;' -U postgres
|
psql -c 'DROP DATABASE IF EXISTS test_pipeline;' -U postgres
|
||||||
psql -c 'CREATE DATABASE pipeline;' -U postgres
|
psql -c 'CREATE DATABASE pipeline;' -U postgres
|
||||||
|
|
||||||
rm -rf /home/steam/myagent/_work/1/s/api/env
|
rm -rf /myagent/_work/1/s/api/env
|
||||||
cd /home/steam/myagent/_work/1/s/api
|
cd /myagent/_work/1/s/api
|
||||||
python3.7 -m venv env
|
python3 -m venv env
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
cd /home/steam/myagent/_work/1/s/api/tacticalrmm
|
cd /myagent/_work/1/s/api/tacticalrmm
|
||||||
pip install --upgrade pip
|
pip install --no-cache-dir --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install --no-cache-dir setuptools==49.6.0 wheel==0.35.1
|
||||||
|
pip install --no-cache-dir -r requirements.txt
|
||||||
displayName: "Install Python Dependencies"
|
displayName: "Install Python Dependencies"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
cd /home/steam/myagent/_work/1/s/api
|
cd /myagent/_work/1/s/api
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
cd /home/steam/myagent/_work/1/s/api/tacticalrmm
|
cd /home/steam/myagent/_work/1/s/api/tacticalrmm
|
||||||
python manage.py test -v 2
|
python manage.py test -v 2
|
||||||
displayName: "Run django tests"
|
displayName: "Run django tests"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
rm -rf /home/steam/myagent/_work/1/s/web/node_modules
|
rm -rf /myagent/_work/1/s/web/node_modules
|
||||||
cd /home/steam/myagent/_work/1/s/web
|
cd /myagent/_work/1/s/web
|
||||||
npm install
|
npm install
|
||||||
displayName: "Install Frontend"
|
displayName: "Install Frontend"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
cd /home/steam/myagent/_work/1/s/web
|
cd /myagent/_work/1/s/web
|
||||||
npm run test:unit
|
npm run test:unit
|
||||||
displayName: "Run Vue Tests"
|
displayName: "Run Vue Tests"
|
||||||
|
|
Loading…
Reference in New Issue