diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2020-08-14 16:31:24 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2020-08-14 16:31:27 +0200 |
commit | 1a72d5054871e6b37578450162ceb2b72123f0b6 (patch) | |
tree | 1487b735fdd70cd834164040330b52eb0bf79c51 /ansible/roles | |
parent | 7a7c38e78ec1473f5dcc32190c7a4e778cc72b1e (diff) |
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
Diffstat (limited to 'ansible/roles')
-rw-r--r-- | ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml | 24 |
1 files changed, 24 insertions, 0 deletions
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" |