-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
56 lines (50 loc) · 987 Bytes
/
.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
---
stages:
- lint
- check
- build
- publish
lint:
script: merchise_lint2
stage: lint
tags:
- merchise-lint
check signature of tag:
stage: check
script:
- git verify-commit $CI_COMMIT_SHA
tags:
- git
- gpg
only:
- /^master$/
build rolling tarball:
stage: build
tags:
- python
script:
- sed -i "s/CI_COMMIT_SHA/+$CI_COMMIT_SHA/" setup.cfg
- sed -i "s/^# tag-build/tag-build/" setup.cfg
- python setup.py sdist
artifacts:
paths:
- dist/
expire_in: 4 days
only:
- /^master$/
publish tarball:
variables:
GIT_STRATEGY: none
stage: publish
tags:
- repo.lahavane.com
dependencies:
- build rolling tarball
script:
- ssh manu@gestion.lahavane.com "mkdir -p Repos/$CI_PROJECT_NAME"
- scp dist/*.tar.gz manu@gestion.lahavane.com:Repos/$CI_PROJECT_NAME
only:
- /^master$/
environment:
name: repo.lahavane.com
url: http://repo.lahavane.com/pypi/$CI_PROJECT_NAME