forked from BeyondTheClouds/enoslib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
93 lines (83 loc) · 1.5 KB
/
.gitlab-ci.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
stages:
- test
- functionnal
- package
- publish
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
python3.5:
image: python:3.5
stage: test
script:
- pip install tox
- tox -e py35 pep8
python3.6:
image: python:3.6
stage: test
script:
- pip install tox
- tox -e py36 pep8
doc:
image: python:3.6
stage: test
script:
- pip install tox
- tox -e docs
artifacts:
paths:
- docs/_build/html
run_command:
image: python:3.5
stage: functionnal
script:
- ip a
- pip install -e .
- cd enoslib/tests/functionnal
- python test_static_run_command.py
- cat hosts
run_ansible:
image: python:3.5
stage: functionnal
script:
- ip a
- pip install -e .
- cd enoslib/tests/functionnal
- python test_static_run_ansible.py
- cat hosts
#### Entering th release zone
package:
image: python:3.6
stage: package
only:
- tags
script:
- python setup.py bdist_wheel
artifacts:
paths:
- dist/
pages:
stage: publish
only:
- tags
dependencies:
- doc
script:
- mkdir -p public/
- cp -r docs/_build/html/* public/
artifacts:
paths:
- public
test-pypi:
image: python:3.6
stage: publish
only:
- tags
dependencies:
- package
script:
- pip install twine
# credentials are set in the env by gitlab
- twine upload dist/* --verbose