Skip to content

Commit

Permalink
Merge pull request #239 from Cadasta/bugfix/downgrade-firefox
Browse files Browse the repository at this point in the history
Downgrade to Firefox 46 for functional testing
  • Loading branch information
ian-ross authored Jun 14, 2016
2 parents 7ef9e87 + b3671b2 commit 876fd8a
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions provision/roles/testing/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
- name: Install Firefox, Xvfb and Squid
- name: Install Xvfb and Squid
become: yes
become_user: root
apt: pkg={{ item }} state=installed update_cache=yes
with_items:
- firefox
- xvfb
- squid3

- name: Download Firefox 46 install bundle
become: yes
become_user: root
get_url: url=https://ftp.mozilla.org/pub/firefox/releases/46.0.1/linux-x86_64/en-US/firefox-46.0.1.tar.bz2
dest=/opt

- name: Unpack Firefox 46 install bundle
become: yes
become_user: root
unarchive: creates=/opt/firefox/firefox
src=/opt/firefox-46.0.1.tar.bz2 dest=/opt copy=no

- name: Add path to Firefox 46
become: yes
become_user: "{{ app_user }}"
lineinfile: dest=/home/vagrant/.bashrc
line="export PATH=/opt/firefox:$PATH"

- name: Install Python Selenium driver
become: yes
become_user: "{{ app_user }}"
Expand Down

0 comments on commit 876fd8a

Please sign in to comment.