@@ -9,73 +9,28 @@ dist: trusty
9
9
cache : pip
10
10
11
11
before_install :
12
- - &install-flit >-
13
- pip install --upgrade pip flit
12
+ - pip install --upgrade pip flit
14
13
15
14
.mixtures :
16
15
- &run-if-tagged
10000
17
16
if : tag IS present
18
- - &run-if-cherry-picker
19
- if : tag =~ ^cherry\-picker\-v\d+\.\d+\.\d+$
20
17
- &run-if-blurb
21
18
if : tag =~ ^blurb\-v\d+\.\d+\.\d+$
22
- - &run-if-cherry-picker-or-untagged
23
- if : tag IS NOT present OR tag =~ ^cherry\-picker\-v\d+\.\d+\.\d+$
24
19
- &run-if-blurb-or-untagged
25
20
if : tag IS NOT present OR tag =~ ^blurb\-v\d+\.\d+\.\d+$
26
21
- &base-3_7
27
22
dist : xenial
28
23
python : " 3.7"
29
- - &install-and-test-cherry-picker
30
- << : *run-if-cherry-picker-or-untagged
31
- env :
32
- TARGET_PKG : cherry_picker
33
- install :
34
- - &cd-to-project pushd "$TARGET_PKG"
35
- - flit install
36
- script :
37
- - pytest cherry_picker/test.py -v
38
- - popd
39
24
- &install-and-test-blurb
40
25
<< : *run-if-blurb-or-untagged
41
26
env :
42
27
TARGET_PKG : blurb
43
28
install :
44
- - * cd-to-project
29
+ - & cd-to-project pushd "$TARGET_PKG"
45
30
- flit install
46
31
- popd
47
32
script :
48
33
- blurb test
49
- - &deploy-base
50
- stage : Publish dists to PYPI
51
- << : *run-if-tagged
52
- python : " 3.6"
53
- install :
54
- - *cd-to-project
55
- script :
56
- - flit build
57
- before_deploy :
58
- # Add an empty setup.py stub, because pypi provider always calls it
59
- - touch setup.py
60
- deploy : &deployment-config
61
- provider : pypi
62
- # `skip-cleanup: true` is required to preserve binary wheel and sdist,
63
- # built by during `install` step above.
64
- skip-cleanup : true
65
- # `skip-existing: true` is required to skip uploading dists, already
66
- # present in PyPI instead of failing the whole process.
67
- # This happenes when other CI (AppVeyor etc.) has already uploaded
68
- # the very same dist (usually sdist).
69
- skip-existing : true
70
- user : &pypi-user core-workflow
71
- password : &pypi-password
72
- # Encrypt with `travis encrypt -r python/core-workflow --org` while using travis-ci.org;
73
- # change to `travis encrypt -r python/core-workflow --api-endpoint 'https://api.travis-ci.com/'`
74
- # upon switch to __free__ travis-ci.com:
75
- secure : " bg1ZOOHlhaT+S3TQy2WpSsWekHaeZSq39kkZj/Ql3nvJ0ES+a+lTjk+gmuSnSX0Sf9V+88TdN5g1frYVcvYWwIQvLEQP2xhqIfq8K+MVe+GbshQGiTD4PC4f7vRcDY+B93X7cQ8HgkGho3c0/BaEaK6MtrS8WK7dIdHCPaea5D8rLF9jXtS2Lt8MYtqRDG1R2BsNN+o87eyr3qD3aJW6cFRPTHPr/x+gmlKuIJcVOwuVd4xyR701xRpE7hK5/bKvQwI2QZhD7wTyJwYqsl3Ce/ZlyS+IINktkFhD2BqH2ya4tdOHeVhA+b44eJEDXUR7gweyO+Ein5W3S3R2lDxHuX3Aq7nJBKHxU39kwcnPPaMRWYKey51d9zbIicmxjj5sLY0vPYmlX1zdbDUK9NqkdRf8aLzyowWFl3DtkXmyoakITOz9boqDIRiivTJQ/mLG8AFKgf0ms/z1yW4/PN+LoomdpmhQj05EfAJdAvdTw+ceteaeBSKc2uDql4Qj5AKUddeaoLQuPbWForfSPosv9DZZmvOXrmncY91HngrdclxFIssMtefQrC2USbQEIedih1cxfsXzwBrX7+f4eHH2MJt/GrOyNB0gaXc4sikYkaBKsIg7UCWC1/F4jmGkyDLlwp31zflZkjPKUJ3vp2SC9R6sHcT04tvxTVIMDCJgkc8="
76
- on :
77
- tags : true
78
- all_branches : true
79
34
80
35
jobs :
81
36
include :
88
43
<< : *install-and-test-blurb
89
44
- python : " nightly" # currently, it's 3.8-dev
90
45
<< : *install-and-test-blurb
91
-
92
- - python : " 3.6"
93
- << : *install-and-test-cherry-picker
94
- - << : *base-3_7
95
- << : *install-and-test-cherry-picker
96
- - python : " nightly" # currently, it's 3.8-dev
97
- << : *install-and-test-cherry-picker
98
- - os : windows
99
- language : sh
100
- python : 3.7
101
- before_install :
102
- - choco install python --version 3.7
103
- - python -m pip install --upgrade pip wheel
104
- - *install-flit
105
- << : *install-and-test-cherry-picker
106
- env :
107
- PATH : >-
108
- /c/Python37:/c/Python37/Scripts:$PATH
109
- TARGET_PKG : cherry_picker
110
-
111
- - << : *deploy-base
112
- << : *run-if-cherry-picker
113
- env :
114
- TARGET_PKG : cherry_picker
115
-
116
- - << : *deploy-base
117
- << : *run-if-blurb
46
+ - << : *run-if-blurb
118
47
if : 1 != 1
119
48
env :
120
49
TARGET_PKG : blurb
0 commit comments