-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
39 lines (36 loc) · 1.05 KB
/
.drone.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
---
kind: pipeline
type: docker
name: build-exec
platform:
os: linux
arch: arm
steps:
- name: Install poetry
image: python:3.7
commands:
- apt-get clean && apt-get update -y && apt-get install python3-venv curl -y
- mkdir $HOME/poetry
- curl -sSL https://install.python-poetry.org | python3 -
# - ${HOME}/.local/bin/poetry config experimental.new-installer false && ${HOME}/.local/bin/poetry config virtualenvs.path ".venv" && ${HOME}/.local/bin/poetry config cache-dir .venv/.cache/ --local && ${HOME}/.local/bin/poetry config virtualenvs.create true --local
- ${HOME}/.local/bin/poetry install && ls -la ./ && ls -la .venv && ${HOME}/.local/bin/poetry config --list
- ${HOME}/.local/bin/poetry run python manage.py test
---
kind: pipeline
type: docker
name: test
platform:
os: linux
arch: arm
steps:
- name: update
image: debian
commands:
- apt clean && apt-get update && apt-get install curl python3-venv python3 -y
triggers:
branch:
- master
- dronetest
event:
- push
- tag