forked from Drakkar-Software/OctoBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
73 lines (64 loc) · 1.93 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
kind: pipeline
name: tests-python3.8-arm64
platform:
os: linux
arch: arm64
steps:
- name: tests
image: python:3.8
environment:
OCTOBOT_PYPI_URL:
from_secret: OCTOBOT_PYPI_URL
DRONE_CLEANED_BRANCH: $${DRONE_SOURCE_BRANCH////_}
commands:
- pip install --extra-index-url $OCTOBOT_PYPI_URL --prefer-binary -r dev_requirements.txt -r requirements.txt
- mkdir user
- cp ./octobot/config/default_config.json ./user/config.json
- TENTACLES_URL_SUBCATEGORY=dev/ TENTACLES_URL_TAG=$DRONE_CLEANED_BRANCH python3 start.py tentacles -q --install --all || python3 start.py tentacles --install --all
- python3 setup.py install
- pytest --cov=. --cov-config=.coveragerc --durations=0 -rw tests
- pytest tentacles
---
kind: pipeline
name: tests-python3.8-arm32
platform:
os: linux
arch: arm
steps:
- name: tests
image: python:3.8
environment:
OCTOBOT_PYPI_URL:
from_secret: OCTOBOT_PYPI_URL
DRONE_CLEANED_BRANCH: $${DRONE_SOURCE_BRANCH////_}
commands:
- pip install --extra-index-url https://www.piwheels.org/simple --extra-index-url $OCTOBOT_PYPI_URL --prefer-binary -r dev_requirements.txt -r requirements.txt
- mkdir user
- cp ./octobot/config/default_config.json ./user/config.json
- TENTACLES_URL_SUBCATEGORY=dev/ TENTACLES_URL_TAG=$DRONE_CLEANED_BRANCH python3 start.py tentacles -q --install --all || python3 start.py tentacles --install --all
- python3 setup.py install
- pytest --cov=. --cov-config=.coveragerc --durations=0 -rw tests
- pytest tentacles
---
kind: pipeline
name: deploy-python3.8-arm64
workspace:
base: /project
platform:
os: linux
arch: arm64
steps:
- name: pypi_publish
pull: always
image: drakkarsoftware/pypi-builder:python-3.8-manylinux-aarch64
environment:
PYPI_USERNAME:
from_secret: pypi_username
PYPI_PASSWORD:
from_secret: pypi_password
when:
event:
- tag
repo:
- Drakkar-Software/OctoBot