Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
52bd810d
Commit
52bd810d
authored
Nov 13, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use debian packages from S3 to fix the browser versions for Chrome and FF
parent
ce208fc6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
playbooks/roles/browsers/defaults/main.yml
+8
-4
playbooks/roles/browsers/tasks/main.yml
+10
-6
No files found.
playbooks/roles/browsers/defaults/main.yml
View file @
52bd810d
browser_deb_pkgs
:
-
xvfb
-
firefox
-
dbus-x11
-
libgconf2-4
-
libxss1
-
libnss3-1d
-
libcurl3
-
xdg-utils
-
google-chrome-stable
-
gdebi
# Debian packages we host in S3 to ensure correct browser version
# Both Chrome and FireFox update their apt repos with the latest version,
# which often causes spurious acceptance test failures.
browser_s3_deb_pkgs
:
-
{
name
:
"
google-chrome-stable_30.0.1599.114-1_amd64.deb"
,
url
:
"
https://s3.amazonaws.com/vagrant.testeng.edx.org/google-chrome-stable_30.0.1599.114-1_amd64.deb"
}
-
{
name
:
"
firefox_25.0+build3-0ubuntu0.12.04.1_amd64.deb"
,
url
:
"
https://s3.amazonaws.com/vagrant.testeng.edx.org/firefox_25.0%2Bbuild3-0ubuntu0.12.04.1_amd64.deb"
}
# Chrome and ChromeDriver
chrome_apt_key
:
"
https://dl-ssl.google.com/linux/linux_signing_key.pub"
chrome_apt_repo
:
"
http://dl.google.com/linux/chrome/deb/"
chromedriver_version
:
2.6
chromedriver_url
:
"
http://chromedriver.storage.googleapis.com/{{
chromedriver_version
}}/chromedriver_linux64.zip"
...
...
playbooks/roles/browsers/tasks/main.yml
View file @
52bd810d
# Install browsers required to run the JavaScript
# and acceptance test suite locally without a display
---
-
name
:
browsers | Google Chrome apt key
apt_key
:
url={{ chrome_apt_key }} state=present
-
name
:
browsers | Google Chrome apt repo
apt_repository
:
repo='deb {{ chrome_apt_repo }} stable main'
-
name
:
browsers | install system packages
apt
:
pkg={{','.join(browser_deb_pkgs)}}
state=present update_cache=yes
-
name
:
browsers | download browser debian packages from S3
get_url
:
dest="/tmp/{{ item.name }}" url="{{ item.url }}"
register
:
download_deb
with_items
:
"
{{
browser_s3_deb_pkgs
}}"
-
name
:
browsers | install browser debian packages
shell
:
gdebi -nq /tmp/{{ item.name }}
when
:
download_deb.changed
with_items
:
"
{{
browser_s3_deb_pkgs
}}"
-
name
:
browsers | Install ChromeDriver
get_url
:
url={{ chromedriver_url }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment