Commit ca60419 1 parent 08936b8 commit ca60419 Copy full SHA for ca60419
File tree 4 files changed +19
-27
lines changed
4 files changed +19
-27
lines changed Original file line number Diff line number Diff line change 20
20
- linux
21
21
stages :
22
22
- maintenance
23
- - phase1
24
- - phase2
23
+ - test
25
24
- deploy
26
25
before_install :
27
26
# begin: workaround to enable support for py37:
46
45
- stage : maintenance
47
46
script :
48
47
- python -m tox -e maintenance
49
- on :
50
- condition : $TRAVIS_EVENT_TYPE = cron
51
- - stage : phase1
52
- script :
48
+ if : type = cron
49
+ - script :
53
50
# package building added here purely to fail-fast if is broken
54
51
- python setup.py sdist bdist_wheel
55
52
- python -m tox
@@ -58,37 +55,31 @@ jobs:
58
55
language : nodejs
59
56
node_js :
60
57
- " 8"
61
- - stage : phase1
62
- script : python -m tox
58
+ - script : python -m tox
63
59
python : " 2.7"
64
60
env : TOXENV=docs
65
- - stage : phase1
66
- script : python -m tox
61
+ - script : python -m tox
67
62
python : " 2.7"
68
63
env : TOXENV=py27
69
64
after_success :
70
65
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
71
66
- requires.io update-site -t ac3bbcca32ae03237a6aae2b02eb9411045489bb -r
72
- - stage : phase2
73
- script : python -m tox
67
+ - script : python -m tox
74
68
python : " 3.4"
75
69
env : TOXENV=py34
76
70
after_success :
77
71
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
78
- - stage : phase2
79
- script : python -m tox
72
+ - script : python -m tox
80
73
python : " 3.5"
81
74
env : TOXENV=py35
82
75
after_success :
83
76
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
84
- - stage : phase2
85
- script : python -m tox
77
+ - script : python -m tox
86
78
python : " 3.6"
87
79
env : TOXENV=py36 PYTHON='3.6' PYENV_VERSION='system'
88
80
after_success :
89
81
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
90
- - stage : phase2
91
- script : python -m pip install -q tox-travis && python -m tox
82
+ - script : python -m pip install -q tox-travis && python -m tox
92
83
python : " 3.7"
93
84
env : TOXENV=py37 PYTHON='3.7'
94
85
after_success :
101
92
script :
102
93
- python setup.py sdist bdist_wheel
103
94
- python -m twine upload dist/*
104
- if : tag IS present
95
+ if : tag IS present AND type != cron
105
96
deploy :
106
97
- provider : releases
107
98
api_key :
Original file line number Diff line number Diff line change 1
1
pbr>=3.0.0
2
- sphinx>=2.0.1
2
+ Sphinx>=1.8.5
3
3
sphinx_rtd_theme>=0.4.3
Original file line number Diff line number Diff line change 3
3
import getpass
4
4
import pytest
5
5
from tenacity import retry
6
- from tenacity import wait_random_exponential
6
+ from tenacity import wait_incrementing
7
7
from tests import get_unique_project_name
8
8
from tests import JiraTestManager
9
9
@@ -57,15 +57,14 @@ def remove_by_slug():
57
57
return slug
58
58
59
59
60
- @retry (wait = wait_random_exponential ( multiplier = 1 , max = 180 ))
60
+ @retry (wait = wait_incrementing ( start = 0 , increment = 1 , max = 60 ))
61
61
def test_delete_project (cl_admin , cl_normal , slug ):
62
62
63
63
with pytest .raises (JIRAError ) as ex :
64
- assert cl_normal .delete_project (slug )
65
-
66
- assert 'Not enough permissions to delete project' in str (ex .value ) \
67
- or str (ex .value ).endswith ('is not a Project, projectID or slug' )
68
-
64
+ cl_normal .delete_project (slug )
65
+ # verify that normal user cannot delete project
66
+ assert 'Not enough permissions to delete project' in str (ex .value )
67
+ # verify that admin user can delete project
69
68
assert cl_admin .delete_project (slug )
70
69
71
70
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ commands=
36
36
setenv =
37
37
PIP_LOG ={envdir}/pip.log
38
38
PIP_DISABLE_PIP_VERSION_CHECK =1
39
+ # Avoid 2020-01-01 warnings: https://github.com/pypa/pip/issues/6207
40
+ PYTHONWARNINGS =ignore:DEPRECATION::pip._internal.cli.base_command
39
41
40
42
passenv =
41
43
CI
You can’t perform that action at this time.
0 commit comments