Skip to content

Commit 3fa35c5

Browse files
committed
Add wagon build check
1 parent 864c68e commit 3fa35c5

4 files changed

Lines changed: 51 additions & 11 deletions

File tree

.circleci/config.yml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- checkout
1919
- run:
2020
name: install python/pip/libvirt packages
21-
command: sudo apt-get install -yq python-libvirt libvirt-dev python-dev python-pip python-virtualenv
21+
command: sudo apt-get install -yq python-libvirt libvirt-dev python-dev python-pip
2222
- run:
2323
name: Download pip
2424
command: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
@@ -28,15 +28,61 @@ jobs:
2828
- run:
2929
name: Install virtualenv
3030
command: pip install --user virtualenv
31+
- run:
32+
name: Init virtualenv
33+
command: virtualenv env
3134
- run:
3235
name: install tox
3336
command: pip install --user tox
3437
- run: /home/circleci/.local/bin/tox -e flake8
3538
- run: /home/circleci/.local/bin/tox -e py27
36-
- run: /home/circleci/.local/bin/tox -e validate
39+
40+
wagon:
41+
docker:
42+
- image: amd64/centos:centos7.5.1804
43+
steps:
44+
- checkout
45+
- run:
46+
name: Install dependencies
47+
command: yum -y install python-devel gcc openssl git libxslt-devel libxml2-devel openldap-devel libffi-devel openssl-devel libvirt-devel libvirt-python
48+
- run:
49+
name: Download pip
50+
command: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
51+
- run:
52+
name: Install pip
53+
command: python get-pip.py
54+
- run:
55+
name: Upgrade pip
56+
command: pip install --upgrade pip==9.0.1
57+
- run:
58+
name: Install virtualenv
59+
command: pip install virtualenv
60+
- run:
61+
name: Init virtualenv
62+
command: virtualenv env
63+
- run:
64+
name: Install wagon
65+
command: pip install wagon==0.3.2
66+
- run:
67+
name: many_linux
68+
command: echo "manylinux1_compatible = False" > "env/bin/_manylinux.py"
69+
- run:
70+
name: make workspace
71+
command: mkdir -p workspace/build
72+
- run:
73+
name: Create wagon
74+
command: source env/bin/activate && wagon create -s . -v -o workspace/build -f -a '--no-cache-dir -c constraints.txt'
75+
- persist_to_workspace:
76+
root: workspace
77+
paths:
78+
- build/*
3779

3880
workflows:
3981
version: 2
4082
tests:
4183
jobs:
4284
- unittests
85+
- wagon:
86+
filters:
87+
branches:
88+
only: /([0-9\.]*\-build|master|dev)/

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,6 @@ Notes for use:
178178
cfy secret create libvirt_common_network -u -s "manager_network"
179179
```
180180
181-
## Wagon creation:
182-
183-
Recommended constraints file for CentOs 7.x and RedHat 7.x is:
184-
```
185-
libvirt-python==4.0.0
186-
cloudify-plugins-common==3.3
187-
```
188-
189181
You should to install [libvirt-devel](examples/bootstraps/centos.sh#L2) before create wagon.
190182
191183
## TODO:

constraints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
libvirt-python==4.5.0
2+
cloudify-plugins-common===3.4.2

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ deps =
1616
-rdev-requirements.txt
1717
-rtest-requirements.txt
1818
commands =
19-
flake8 .
19+
flake8 cloudify_libvirt
2020
pylint -E cloudify_libvirt
2121

2222
[testenv:validate]

0 commit comments

Comments
 (0)