Change in osmo-ci[master]: ansible: osmocom-jenkins-slave: osmocom_build_deps: install osmo-pyth...

2020-08-15 Thread laforge
laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/19661 )

Change subject: ansible: osmocom-jenkins-slave: osmocom_build_deps: install 
osmo-python-tests for py2 and py3
..


Patch Set 1: Code-Review+2

there might have been a more elegant version with variable substitution than a 
copy+paste, but well, it works ;)


--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/19661
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ica279e83b763389ababb526336ebd95d45beee7a
Gerrit-Change-Number: 19661
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Comment-Date: Sat, 15 Aug 2020 07:44:55 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in osmo-ci[master]: ansible: osmocom-jenkins-slave: osmocom_build_deps: install osmo-pyth...

2020-08-15 Thread laforge
laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/19661 )

Change subject: ansible: osmocom-jenkins-slave: osmocom_build_deps: install 
osmo-python-tests for py2 and py3
..

ansible: osmocom-jenkins-slave: osmocom_build_deps: install osmo-python-tests 
for py2 and py3

The osmo-python-tests will be used to test vty commands.
The old python2 package are only required to test old images because
the current master is only supporting python3.
Installing both doesn't conflict because the python site-packages are
different for the two version.

Change-Id: Ica279e83b763389ababb526336ebd95d45beee7a
---
M ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
1 file changed, 24 insertions(+), 0 deletions(-)

Approvals:
  lynxis lazus: Verified
  laforge: Looks good to me, approved



diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml 
b/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
index 90c86b0..e2196b6 100644
--- a/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
+++ b/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
@@ -169,3 +169,27 @@
 - libbson-dev
 - libyaml-dev
   when: ansible_distribution == 'Debian' and ansible_distribution_version|int 
>= 10
+
+- name: download osmo-python-tests for py2
+  git:
+repo: "https://gerrit.osmocom.org/python/osmo-python-tests;
+dest: "/home/{{ jenkins_user }}/osmo-python-tests2"
+version: "fb4b813d4df62b7b2445bdced961eb1847267eed"
+
+- name: install osmo-python-tests for py2
+  shell:
+cmd: "python2 setup.py clean build install && date > installed"
+chdir: "/home/{{ jenkins_user }}/osmo-python-tests2"
+creates: "/home/{{ jenkins_user }}/osmo-python-tests2/installed"
+
+- name: download osmo-python-tests for py3
+  git:
+repo: "https://gerrit.osmocom.org/python/osmo-python-tests;
+dest: "/home/{{ jenkins_user }}/osmo-python-tests3"
+version: "be7fcf5f28a5d0f9ad35510f09b5979268d76598"
+
+- name: install osmo-python-tests for py3
+  shell:
+cmd: "python3 setup.py clean build install && date > installed"
+chdir: "/home/{{ jenkins_user }}/osmo-python-tests3"
+creates: "/home/{{ jenkins_user }}/osmo-python-tests3/installed"

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/19661
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ica279e83b763389ababb526336ebd95d45beee7a
Gerrit-Change-Number: 19661
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: lynxis lazus 
Gerrit-MessageType: merged


Change in osmo-ci[master]: ansible: osmocom-jenkins-slave: osmocom_build_deps: install osmo-pyth...

2020-08-14 Thread lynxis lazus
lynxis lazus has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/19661 )

Change subject: ansible: osmocom-jenkins-slave: osmocom_build_deps: install 
osmo-python-tests for py2 and py3
..


Patch Set 1: Verified+1

Tested on build2-deb9build-ansible by `import osmopy.obscvty` with python2 and 
python3.


--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/19661
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ica279e83b763389ababb526336ebd95d45beee7a
Gerrit-Change-Number: 19661
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Comment-Date: Fri, 14 Aug 2020 14:35:43 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in osmo-ci[master]: ansible: osmocom-jenkins-slave: osmocom_build_deps: install osmo-pyth...

2020-08-14 Thread lynxis lazus
lynxis lazus has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/19661 )


Change subject: ansible: osmocom-jenkins-slave: osmocom_build_deps: install 
osmo-python-tests for py2 and py3
..

ansible: osmocom-jenkins-slave: osmocom_build_deps: install osmo-python-tests 
for py2 and py3

The osmo-python-tests will be used to test vty commands.
The old python2 package are only required to test old images because
the current master is only supporting python3.
Installing both doesn't conflict because the python site-packages are
different for the two version.

Change-Id: Ica279e83b763389ababb526336ebd95d45beee7a
---
M ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
1 file changed, 24 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/61/19661/1

diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml 
b/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
index 90c86b0..e2196b6 100644
--- a/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
+++ b/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
@@ -169,3 +169,27 @@
 - libbson-dev
 - libyaml-dev
   when: ansible_distribution == 'Debian' and ansible_distribution_version|int 
>= 10
+
+- name: download osmo-python-tests for py2
+  git:
+repo: "https://gerrit.osmocom.org/python/osmo-python-tests;
+dest: "/home/{{ jenkins_user }}/osmo-python-tests2"
+version: "fb4b813d4df62b7b2445bdced961eb1847267eed"
+
+- name: install osmo-python-tests for py2
+  shell:
+cmd: "python2 setup.py clean build install && date > installed"
+chdir: "/home/{{ jenkins_user }}/osmo-python-tests2"
+creates: "/home/{{ jenkins_user }}/osmo-python-tests2/installed"
+
+- name: download osmo-python-tests for py3
+  git:
+repo: "https://gerrit.osmocom.org/python/osmo-python-tests;
+dest: "/home/{{ jenkins_user }}/osmo-python-tests3"
+version: "be7fcf5f28a5d0f9ad35510f09b5979268d76598"
+
+- name: install osmo-python-tests for py3
+  shell:
+cmd: "python3 setup.py clean build install && date > installed"
+chdir: "/home/{{ jenkins_user }}/osmo-python-tests3"
+creates: "/home/{{ jenkins_user }}/osmo-python-tests3/installed"

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/19661
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ica279e83b763389ababb526336ebd95d45beee7a
Gerrit-Change-Number: 19661
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus 
Gerrit-MessageType: newchange