Skip to content

Commit d5f7a63

Browse files
author
earthmant
committed
update circle
1 parent a0be89d commit d5f7a63

2 files changed

Lines changed: 126 additions & 23 deletions

File tree

.circleci/config.yml

Lines changed: 115 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,40 @@ executors:
2929

3030

3131
commands:
32+
33+
34+
validate_documentation:
35+
steps:
36+
- run:
37+
name: "Pull Submodules"
38+
command: |
39+
git submodule init
40+
git submodule update --remote --recursive
41+
- run:
42+
name: Download pip
43+
command: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
44+
- run:
45+
name: Install pip
46+
command: sudo python get-pip.py
47+
- run:
48+
name: Install virtualenv
49+
command: pip install --user virtualenv
50+
- run:
51+
name: Init virtualenv
52+
command: virtualenv env
53+
- run:
54+
name: install tox
55+
command: pip install --user pygithub pyyaml==3.10
56+
- run:
57+
name: upgrade setuptools
58+
command: pip install --upgrade setuptools
59+
- run:
60+
name: install local project
61+
command: pip install https://github.com/cloudify-incubator/cloudify-ecosystem-test/archive/latest.zip
62+
- attach_workspace:
63+
at: workspace
64+
- run: python .circleci/validate_docs.py
65+
3266
run_unittest:
3367
steps:
3468
- run:
@@ -199,8 +233,50 @@ commands:
199233
at: workspace
200234
- run: python .circleci/package_release.py
201235

236+
237+
238+
merge_docs:
239+
steps:
240+
- attach_workspace:
241+
at: workspace
242+
- run:
243+
name: "Pull Submodules"
244+
command: |
245+
git submodule init
246+
git submodule update --remote --recursive
247+
- run:
248+
name: Download pip
249+
command: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
250+
- run:
251+
name: Install pip
252+
command: sudo python get-pip.py
253+
- run:
254+
name: Install virtualenv
255+
command: pip install --user virtualenv
256+
- run:
257+
name: Init virtualenv
258+
command: virtualenv env
259+
- run:
260+
name: install tox
261+
command: pip install --user pygithub pyyaml==3.10
262+
- run:
263+
name: upgrade setuptools
264+
command: pip install --upgrade setuptools
265+
- run:
266+
name: install local project
267+
command: pip install https://github.com/cloudify-incubator/cloudify-ecosystem-test/archive/latest.zip
268+
- attach_workspace:
269+
at: workspace
270+
- run: python .circleci/merge_docs.py
271+
202272
jobs:
203273

274+
validate_documentation:
275+
executor: py27
276+
steps:
277+
- checkout
278+
- validate_documentation
279+
204280
unittests_py27:
205281
executor: py27
206282
steps:
@@ -248,13 +324,21 @@ jobs:
248324
- checkout
249325
- release_plugin
250326

327+
merge_docs:
328+
executor: py27
329+
steps:
330+
- checkout
331+
- merge_docs
332+
251333
workflows:
252334
version: 2
253335
tests:
254-
jobs: &all_jobs
336+
jobs:
255337
- py3_compat
256338
- unittests_py27
257339
- unittests_py36
340+
# - validate_documentation
341+
258342
- wagon:
259343
filters:
260344
branches:
@@ -263,21 +347,29 @@ workflows:
263347
filters:
264348
branches:
265349
only: /([0-9\.]*\-build|master)/
266-
- integration_tests:
267-
requires:
268-
- wagon
269-
- rhel_wagon
270-
filters:
271-
branches:
272-
only: /([0-9\.]*\-build|master)/
273-
- release:
274-
filters:
275-
branches:
276-
only: /master/
277-
requires:
278-
- wagon
279-
- rhel_wagon
280-
- integration_tests
350+
# - integration_tests:
351+
# requires:
352+
# - wagon
353+
# - rhel_wagon
354+
# filters:
355+
# branches:
356+
# only: /([0-9\.]*\-build|master)/
357+
# - release:
358+
# filters:
359+
# branches:
360+
# only: /master/
361+
# requires:
362+
# - wagon
363+
# - rhel_wagon
364+
# - integration_tests
365+
# - merge_docs:
366+
# filters:
367+
# branches:
368+
# only: /master/
369+
# requires:
370+
# - release
371+
# - validate_documentation
372+
281373
nightly:
282374
triggers:
283375
- schedule:
@@ -298,10 +390,10 @@ workflows:
298390
filters:
299391
branches:
300392
only: /([0-9\.]*\-build|master)/
301-
- integration_tests:
302-
requires:
303-
- wagon
304-
- rhel_wagon
305-
filters:
306-
branches:
307-
only: /([0-9\.]*\-build|master)/
393+
# - integration_tests:
394+
# requires:
395+
# - wagon
396+
# - rhel_wagon
397+
# filters:
398+
# branches:
399+
# only: /([0-9\.]*\-build|master)/

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
[tox]
33
envlist=flake8,nosetests
44

5+
[testenv]
6+
setenv =
7+
VIRTUAL_ENV={envdir}
8+
9+
# NOTE: relative paths were used due to '-w' flag for nosetests util
10+
11+
usedevelop = True
12+
install_command = pip install -U {opts} {packages}
13+
deps = -r{toxinidir}/test-requirements.txt
14+
whitelist_externals = bash
15+
516
[testenv:nosetest]
617
deps =
718
-rdev-requirements.txt

0 commit comments

Comments
 (0)