forked from hetznercloud/hcloud-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
69 lines (61 loc) · 1.14 KB
/
.gitlab-ci.yml
File metadata and controls
69 lines (61 loc) · 1.14 KB
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
stages:
- test
.tests_template: &tests_template
before_script:
- pip install tox
stage: test
variables:
FAKE_API_ENDPOINT: "http://api_mock:8080"
services:
- name: "lkdevelopment/hetzner-cloud-api-mock"
alias: "api_mock"
script:
tox
tags:
- fast
python27:
<<: *tests_template
image: python:2.7
script: tox -e py27
python34:
<<: *tests_template
image: python:3.4
script: tox -e py34
python35:
<<: *tests_template
image: python:3.5
script: tox -e py35
python36:
<<: *tests_template
image: python:3.6
script: tox -e py36
python37:
<<: *tests_template
image: python:3.7
script: tox -e py37
test-style:
before_script:
- pip install tox
image: python:3.6
script: tox -e flake8
tags:
- fast
pages:
script:
- apk --no-cache add make
- pip install arrow
- pip install sphinx
- pip install sphinx_rtd_theme
- pip install recommonmark
- rm -f docs/hcloud.rst
- rm -f docs/modules.rst
- sphinx-apidoc -o docs/ hcloud
- make -C docs clean
- make -C docs html
- mv docs/_build/html/ public
artifacts:
paths:
- public
image: python:3.6-alpine
tags:
- fast