-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
115 lines (106 loc) · 2.21 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#image: lpmn/minke:latest
image: python
stages:
- test
- build
- deploy
# test-python27:
# stage: test
# script:
# - export PYTHONPATH="/usr/local/lib64/python2.7/site-packages"
# - echo "pandas" > requirements.txt
# - pip install -r requirements.txt
# - pip install coverage
# - python setup.py install
# - coverage run setup.py test
# - coverage report -m
# #- coverage html
# #- mv htmlcov public/coverage
# coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
# artifacts:
# expire_in: 3h
# paths:
# - testout
# - public
test-python-36:
stage: test
image: python:3.6
script:
- pip install -r requirements.txt
- pip install coverage
- python setup.py install
- coverage run setup.py test
- coverage report -m
allow_failure: true
test-python-37:
stage: test
image: python:3.7
script:
- pip install -r requirements.txt
- pip install coverage
- python setup.py install
- coverage run setup.py test
- coverage report -m
allow_failure: true
pages:
stage: build
script:
- pip install -r requirements.txt
- pip install .
- pip install sphinx numpydoc kentigern # sphinxcontrib-versioning
- pip install -r requirements_dev.txt
- make docs
- mv docs/_build/html/ public/
artifacts:
paths:
- public
only:
- master
# # Build receipe for standalone wheels on Linux
# wheel-27:
# image: python:2.7
# stage: build
# script:
# - pip install wheel
# # Build wheel
# - python setup.py bdist_wheel --universal
# dependencies: []
# artifacts:
# expire_in: 3h
# paths:
# - dist
wheel-36:
image: python:3.6
stage: build
script:
- pip install wheel
# Build wheel
- python setup.py bdist_wheel --universal
dependencies: []
artifacts:
expire_in: 3h
paths:
- dist
wheel-37:
image: python:3.7
stage: build
script:
- pip install wheel
# Build wheel
- python setup.py bdist_wheel --universal
dependencies: []
artifacts:
expire_in: 3h
paths:
- dist
deploy:wheel:
stage: deploy
script:
- pip install twine
- twine upload dist/*
only:
#- master@daniel-williams/minke
- tags
# except:
# - pushes
# - web