From 1a72d5054871e6b37578450162ceb2b72123f0b6 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Fri, 14 Aug 2020 16:31:24 +0200 Subject: 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 --- .../tasks/osmocom_build_deps.yml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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" -- cgit v1.2.3