-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbitbucket-pipelines.yml
47 lines (45 loc) · 1.37 KB
/
bitbucket-pipelines.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
pipelines:
branches:
master:
- step:
image: python:3.5.2
name: Master siempre funciona
script:
- pip install -r requirements.txt
- python -m unittest discover tests/
- python3 setup.py bdist_wheel
- step:
name: Publicación de versión en PyPI Test
trigger: manual
deployment: test
script:
- pipe: atlassian/pypi-publish:0.2.9
variables:
PYPI_USERNAME: $PYPI_USERNAME
PYPI_PASSWORD: $PYPI_PASSWORD
REPOSITORY: $PYPI_REPO_URL
DISTRIBUTIONS: 'bdist_wheel'
- step:
name: Publicación de versión en PyPI
trigger: manual
deployment: production
script:
- pipe: atlassian/pypi-publish:0.2.9
variables:
PYPI_USERNAME: $PYPI_USERNAME
PYPI_PASSWORD: $PYPI_PASSWORD
REPOSITORY: $PYPI_REPO_URL
DISTRIBUTIONS: 'bdist_wheel'
pull-requests:
'**':
- step:
image: python:3.5.2
caches:
- pip
name: PR funciona
script:
- pip install -r requirements.txt
- python -m unittest discover tests/
- python3 setup.py bdist_wheel
artifacts:
- dist/**