-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
129 lines (111 loc) · 2.28 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
image: python
stages:
- earlytest
- fulltest
- deploy
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
- pip install -r dev-requirements.txt
pylint:
image: python:3.7
stage: earlytest
script: tox -e pylint
pep8:
stage: earlytest
script: tox -e pep8
python2:
image: python:2.7
stage: earlytest
script: tox -e py27
python3:
image: python:3.7
stage: earlytest
script: tox -e py37
python34:
image: python:3.4
stage: fulltest
script: tox -e py34
python35:
image: python:3.5
stage: fulltest
script: tox -e py35
python36:
image: python:3.6
stage: fulltest
script: tox -e py36
python37:
image: python:3.7
stage: fulltest
script: tox -e py37
python38:
image: python:3.8
stage: fulltest
script: tox -e py38
python39:
image: python:3.9
stage: fulltest
script: tox -e py39
pythonrc:
image: python:rc
stage: fulltest
script: tox -e py310
pypy:
image: pypy:2
stage: fulltest
script: tox -e pypy
pypy3:
image: pypy:3
stage: fulltest
script: tox -e pypy3
coveralls:
image: python:3.7
variables:
CI_NAME: gitlab
CI_BUILD_NUMBER: "${CI_JOB_ID}"
CI_BUILD_URL: "${CI_JOB_URL}"
CI_BRANCH: "${CI_COMMIT_REF_NAME}"
stage: deploy
script:
- pip install coveralls
- pip install submodules/*
- coverage run --source=cryptolyzer setup.py test
- coveralls
only:
refs:
- master
dockerhub:
image: docker:latest
stage: deploy
services:
- docker:dind
variables:
DOCKER_NAME: coroner/${CI_PROJECT_NAME}
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- if ! [ -z ${CI_COMMIT_TAG} ] ; then DOCKER_NAME="${DOCKER_NAME}:${CI_COMMIT_TAG}" ; fi
- echo "${CI_REGISTRY_PASSWORD}" | docker login -u "${CI_REGISTRY_USER}" --password-stdin "${CI_REGISTRY}"
script:
- docker build -t "$DOCKER_NAME" .
- docker push "$DOCKER_NAME"
only:
refs:
- branches
- tags
variables:
- $CI_COMMIT_TAG =~ /^v\d+.\d+.\d+$/
- $CI_COMMIT_REF_NAME == "master"
obs:
image: coroner/cryptolyzer:obs
stage: deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- obs.sh
only:
refs:
- branches
- tags
variables:
- $CI_COMMIT_TAG =~ /^v\d+.\d+.\d+$/
- $CI_COMMIT_REF_NAME == "master"