-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
52 lines (47 loc) · 1021 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
stages:
- tests
- build
- release
python2.7:
stage: tests
image: python:2.7
before_script:
- pip install -r development_requirements.txt
script:
- nosetests --cover-package=pyEchosign --with-coverage
python3.5:
stage: tests
image: python:3.5
before_script:
- pip install -r development_requirements.txt
script:
- nosetests --cover-package=pyEchosign --with-coverage
python3.6:
stage: tests
image: python:3.6
before_script:
- pip install -r development_requirements.txt
script:
- nosetests --cover-package=pyEchosign --with-coverage
build:
stage: build
image: python:3.6
script:
- python setup.py bdist_wheel --universal
- python setup.py sdist
artifacts:
paths:
- dist/
only:
- tags
release:
stage: release
image: python:3.6
before_script:
- pip install twine
script:
- twine upload -u $PYPI_USER -p $PYPI_PASSWORD dist/*
dependencies:
- build
only:
- tags