-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
61 lines (55 loc) · 1.63 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
kind: pipeline
type: docker
name: ubuntu-20.04
steps:
- name: test
image: ubuntu:20.04
environment:
DEBIAN_FRONTEND: noninteractive
commands:
- apt-get update > /dev/null
- apt-get install -y apt-utils > /dev/null
# install non-python packages
- apt-get install -y rcs > /dev/null
- apt-get install -y subversion > /dev/null
- apt-get install -y git > /dev/null
- apt-get install -y libjs-mathjax > /dev/null
# install python3 and the necessary python packages
- apt-get install -y python3 > /dev/null
- apt-get install -y python3-werkzeug > /dev/null
# install tzdata without waiting for input, needed by python3-jinja2
- DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata > /dev/null
- apt-get install -y python3-jinja2 > /dev/null
- apt-get install -y python3-webtest > /dev/null
# wsgitools is only available via pip
- apt-get install -y python3-pip > /dev/null
# TODO the only version of wsgitools which is available on pip is 0.3.1
- python3 -m pip install --no-cache-dir wsgitools
- python3 -m pip install --no-cache-dir epydoc
# finally, perform the tests
- make check
trigger:
event:
exclude:
- pull_request
---
kind: pipeline
type: docker
name: recent-python
steps:
- name: test
image: python:latest
commands:
# install non-python dependencies
- apt-get update > /dev/null
- apt-get install -y rcs > /dev/null
- apt-get install -y libjs-mathjax > /dev/null
# install python packages
- pip install --no-cache-dir -r requirements.txt
- pip install --no-cache-dir coverage
# perform the tests
- make coverage
trigger:
event:
exclude:
- pull_request