-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy path.gitlab-ci.yaml
More file actions
42 lines (39 loc) · 841 Bytes
/
.gitlab-ci.yaml
File metadata and controls
42 lines (39 loc) · 841 Bytes
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
.test_template: &test_definition
stage: test
tags:
- docker
script:
- pip3 install -r requirements.txt
- pip3 install -r dev-only-reqs.txt
- pycodestyle --ignore=E501,W503,E121,E123,E126,E133,E226,E241,E242,E704 .
- pytest tests --cov=ly --cov-report term --cov-report html
test_python3.5:
image: python:3.5
<<: *test_definition
test_python3.6:
image: python:3.6
<<: *test_definition
test_python3.7:
image: python:3.7
<<: *test_definition
test_python3.8:
image: python:3.8
<<: *test_definition
test:
image: python
<<: *test_definition
artifacts:
paths:
- htmlcov/
expire_in: 1 day
docs:
stage: deploy
tags:
- static-server
dependencies:
- test
script:
- rm -rf ~/coverage/htdocs/python-ly
- mv htmlcov/ ~/coverage/htdocs/python-ly
only:
- stable