-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
57 lines (50 loc) · 1.08 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
---
kind: pipeline
type: docker
name: default
steps:
- name: install, build doc run scripts
image: python:3.8
commands:
- git fetch --tags
- pip install sphinx sphinx_rtd_theme wheel Cython coverage
- python setup.py install
- cd doc
- make html
- cd ../tests
- coverage run --source hydraulic ci_tests.py
- coverage report
- coverage json
- python coverage.py
- name: develop
image: python:3.8
commands:
- pip install Cython
- python setup.py develop
- name: sdist, bdist, wheel
image: python:3.8
commands:
- pip install Cython wheel
- python setup.py bdist_wheel
- name: upload_doc_master
image: appleboy/drone-scp
when:
branch: master
event: push
settings:
host: austerlitz.dessia.tech
target: /var/www/documentation/hydraulic/
source: doc/build/html/*
strip_components: 3
username: drone
password:
from_secret: ssh_drone_password
- name: upload to pypi
image: plugins/pypi
when:
event: tag
settings:
skip_build: True
username: dessia_tech
password:
from_secret: pypi_password