-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V8's `gclient.py` now requires `httplib2`. Install it on all the machines that the V8 CI can run on.
- Loading branch information
1 parent
7c82a22
commit 119f03d
Showing
11 changed files
with
115 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
|
||
# Red Hat Enterprise Linux 7 | ||
|
||
- name: register Red Hat subscription | ||
community.general.redhat_subscription: | ||
activationkey: "{{ type }}" | ||
org_id: "{{ rh_org }}" | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
- name: install packages required for V8 builds | ||
include: "{{ v8deps_include }}" | ||
loop_control: | ||
loop_var: v8deps_include | ||
with_first_found: | ||
- files: | ||
- "{{ role_path }}/tasks/partials/{{ os }}-{{ arch }}.yml" | ||
- "{{ role_path }}/tasks/partials/{{ os }}.yml" | ||
- "{{ role_path }}/tasks/partials/{{ os|stripversion }}.yml" | ||
skip: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
- name: install httplib2 | ||
ansible.builtin.yum: | ||
name: ['python2-httplib2', 'python3-httplib2'] | ||
state: present |
33 changes: 33 additions & 0 deletions
33
ansible/roles/build-test-v8/tasks/partials/rhel7-s390x.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
# RHEL 7 doesn't have a package for pip and EPEL 7 doesn't support s390x. | ||
# Install pip via `get-pip.py`. | ||
- name: download pip install script | ||
ansible.builtin.get_url: | ||
dest: "{{ home }}/{{ server_user }}/get-pip.py" | ||
url: https://bootstrap.pypa.io/pip/2.7/get-pip.py | ||
|
||
- name: install pip | ||
ansible.builtin.shell: | ||
cmd: python {{ home }}/{{ server_user }}/get-pip.py | ||
creates: /usr/bin/pip2 | ||
|
||
# With pip2 we're getting a `No module named glob` error when pep517 is used | ||
# (defaults to use). httplib2 0.18.0 is the last version that is installable | ||
# with `--no-use-pep517`. | ||
- name: install httplib2 for python 2 | ||
ansible.builtin.pip: | ||
executable: pip2 | ||
extra_args: --no-use-pep517 | ||
name: httplib2==0.18.0 | ||
state: present | ||
|
||
- name: install httplib2 for python 3 | ||
ansible.builtin.pip: | ||
executable: pip-3 | ||
name: httplib2 | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
# V8 builds still require Python 2. | ||
- name: install packages required to build V8 | ||
ansible.builtin.dnf: | ||
name: ['GConf2-devel', 'python2', 'python2-pip', 'python3-httplib2'] | ||
state: present | ||
|
||
- name: update python package alternatives | ||
community.general.alternatives: | ||
link: /usr/bin/python | ||
name: python | ||
path: /usr/bin/python2 | ||
|
||
# RHEL 8 doesn't have a package for httplib2 for Python 2 so install via pip. | ||
- name: install httplib2 | ||
ansible.builtin.pip: | ||
executable: pip2 | ||
name: httplib2 | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
- name: install httplib2 | ||
ansible.builtin.apt: | ||
name: ['python-httplib2', 'python3-httplib2'] | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters