11version : 2.1
22
3+ commands :
4+ set_package_version :
5+ description : Set version statically
6+ steps :
7+ - run :
8+ name : Set version statically
9+ command : |
10+ VERSION=$(python3 setup.py --version)
11+ sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
12+
313jobs :
14+
15+ test_python26 :
16+ docker :
17+ - image : danielflook/python-minifier-build:fedora30-2019-06-26
18+ steps :
19+ - checkout
20+ - set_package_version
21+
22+ - run :
23+ name : tox
24+ command : |
25+ pip3 install 'tox<3' 'virtualenv<16'
26+ tox -r -e python26
27+
28+ test_python33 :
29+ docker :
30+ - image : danielflook/python-minifier-build:fedora28-2019-06-26
31+ steps :
32+ - checkout
33+ - set_package_version
34+
35+ - run :
36+ name : tox
37+ command : |
38+ pip3 install 'tox<3' 'virtualenv<16'
39+ tox -r -e python33
40+
441 test :
542 docker :
6- - image : danielflook/python-minifier-build:<< parameters.image >>
43+ - image : danielflook/python-minifier-build:fedora30-2019-06-26
744 steps :
845 - checkout
46+ - set_package_version
947
1048 - run :
11- name : Set version statically
49+ name : tox
1250 command : |
13- VERSION=$(python setup.py --version)
14- sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
51+ pip3 install tox==3.11.1 virtualenv==16.6.0
52+ tox -r -e python27,python34,python35,python36,python37,pypy,pypy3
53+
54+ xtest :
55+ docker :
56+ - image : danielflook/python-minifier-build:<< parameters.image >>-2019-06-26
57+ steps :
58+ - checkout
59+ - set_package_version
1560
1661 - run :
1762 name : tox
1863 command : |
19- pip install tox virtualenv
20- tox -r -e << parameters.python >>
64+
65+ if [[ "<< parameters.interpreter >>" == "python26" ]]; then
66+ pip3 install 'tox<3' 'virtualenv<16'
67+ elif [[ "<< parameters.interpreter >>" == "python33" ]]; then
68+ pip3 install 'tox<3' 'virtualenv<16'
69+ else
70+ pip3 install tox==3.11.1 virtualenv==16.6.0
71+ fi
72+
73+ tox -r -e << parameters.interpreter >> xtest
2174
2275 parameters :
23- python :
76+ interpreter :
2477 type : string
2578 image :
2679 type : string
2780 default : fedora30
2881
2982 publish :
3083 docker :
31- - image : danielflook/python-minifier-build
84+ - image : danielflook/python-minifier-build:fedora30-2019-06-26
3285 steps :
3386 - checkout
34-
35- - run :
36- name : Set version statically
37- command : |
38- VERSION=$(python setup.py --version)
39- sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
87+ - set_package_version
4088
4189 - run :
4290 name : Add signing key
@@ -59,36 +107,95 @@ jobs:
59107
60108 publish_docs :
61109 docker :
62- - image : danielflook/python-minifier-build
110+ - image : danielflook/python-minifier-build:fedora30-2019-06-26
63111 steps :
64112 - checkout
65113
66114 - run :
67115 name : sphinx build
68116 command : |
69117 pip3 install --upgrade setuptools wheel twine
70- pip3 install -r requirements-dev.txt
118+ pip3 install sphinx==2.0.1 sphinxcontrib-programoutput==0.14 sphinx_rtd_theme==0.4.3
71119 python3 setup.py install
72120 sphinx-build docs/source /tmp/build
73121
74122 - run :
75123 name : git push
76124 command : |
77125 git config user.email "[email protected] " 78- git config user.name "Daniel Flook "
126+ git config user.name "CircleCI "
79127
80128 git checkout gh-pages
81129 rm -rf * .circleci
82130 cp -R /tmp/build/. .
83131 git add --all
84- git commit -m "Update docs" || true
132+ git commit -m "Update docs\n[skip ci] " || true
85133 git push
86134
87135workflows :
88136 version : 2
89137 build :
90138 jobs :
91- - test :
92- python : python36
93- - test :
94- python : python37
139+ - test_python26
140+ - test_python33
141+ - test
142+ #
143+ # - xtest:
144+ # name: xtest_python26
145+ # interpreter: python26
146+ # requires:
147+ # - test_python26
148+ # - xtest:
149+ # name: xtest_python27
150+ # interpreter: python27
151+ # requires:
152+ # - test
153+ # - xtest:
154+ # name: xtest_python33
155+ # interpreter: python33
156+ # image: fedora28
157+ # requires:
158+ # - test_python33
159+ # - xtest:
160+ # name: xtest_python34
161+ # interpreter: python34
162+ # requires:
163+ # - test
164+ # - xtest:
165+ # name: xtest_python35
166+ # interpreter: python35
167+ # requires:
168+ # - test
169+ # - xtest:
170+ # name: xtest_python36
171+ # interpreter: python36
172+ # requires:
173+ # - test
174+ # - xtest:
175+ # name: xtest_python37
176+ # interpreter: python37
177+ # requires:
178+ # - test
179+ # - xtest:
180+ # name: xtest_pypy3
181+ # interpreter: pypy3
182+ # requires:
183+ # - test
184+ #
185+ - publish :
186+ # requires:
187+ # - xtest_python26
188+ # - xtest_python27
189+ # - xtest_python33
190+ # - xtest_python34
191+ # - xtest_python35
192+ # - xtest_python36
193+ # - xtest_python37
194+ # - xtest_pypy3
195+ filters :
196+ branches :
197+ only : master
198+
199+ - publish_docs :
200+ requires :
201+ - publish
0 commit comments