-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
62 lines (55 loc) · 1.02 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
image: imaxt/owl-pipeline:latest
before_script:
- python --version
- pip install -r requirements_dev.txt
- python setup.py develop
stages:
- Static Analysis
- Documentation
- Tests
- Deploy
flake8:
stage: Static Analysis
tags:
- python
except:
- tags
script:
- python setup.py flake8
mypy:
stage: Static Analysis
tags:
- python
except:
- tags
script:
- mypy owl_client --ignore-missing-imports
docs:
stage: Documentation
tags:
- python
except:
- tags
script:
- python setup.py build_sphinx -W
tests:
stage: Tests
tags:
- python
except:
- tags
script:
- python setup.py test
deploy:
stage: Deploy
tags:
- python
only:
- tags
script:
- python setup.py sdist
- curl -X MKCOL $REPO/owl-pipeline-client
- curl -XPUT $REPO/owl-pipeline-client/owl-pipeline-client-0.5.3.tar.gz --data-binary @dist/owl-pipeline-client-0.5.3.tar.gz
environment:
name: Repository
url: http://imaxt.ast.cam.ac.uk/pip/owl-pipeline-client