Skip to content

Commit d064cd6

Browse files
authored
ansible: fix tap2junit installation (nodejs#4257)
`tap2junit` requires `packaging`, which is part of `python3-setuptools`. Also install `tap2junit` into a Python venv to avoid warnings about running `pip` as the `root` user. Fixes: nodejs#4255
1 parent 5f1225b commit d064cd6

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

ansible/roles/baselayout/vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ packages: {
6363
],
6464

6565
fedora: [
66-
'bzip2,ccache,clang,gcc-c++,git,fontconfig,sudo,make,python3-pip,rust,cargo',
66+
'bzip2,ccache,clang,gcc-c++,git,fontconfig,sudo,make,python3-pip,python3-setuptools,rust,cargo',
6767
],
6868

6969
freebsd: [
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
3+
#
4+
# install tap2junit from pip
5+
#
6+
7+
- name: install tap2junit
8+
pip:
9+
name: tap2junit=={{ tap2junit_version }}
10+
virtualenv: /home/{{ server_user }}/venv
11+
virtualenv_command: python3 -m venv

0 commit comments

Comments
 (0)