Commit b3f42957 by lapentab Committed by Jay Zoldak

Update ansible scripts for the jenkins vagrant box

parent 18b3e053
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
vars_files: vars_files:
- "{{ secure_dir }}/vars/edxapp_ref_users.yml" - "{{ secure_dir }}/vars/edxapp_ref_users.yml"
- "{{ secure_dir }}/vars/edxapp_sandbox.yml" - "{{ secure_dir }}/vars/edxapp_sandbox.yml"
- "vars/jenkins.yml" - "roles/jenkins/vars/main.yml"
roles: roles:
- common - common
- edxlocal - edxlocal
......
...@@ -72,3 +72,60 @@ ...@@ -72,3 +72,60 @@
- name: edxlocal | install memcached - name: edxlocal | install memcached
apt: pkg=memcached state=present apt: pkg=memcached state=present
- name: Install Ruby-bundler
apt: pkg=ruby-bundler
- name: Install rubygems
apt: pkg=rubygems
- name: install rbenv
apt: pkg=rbenv state=present
- name: Install npm
apt: pkg=npm
- name: install libgraphviz-dev
apt: pkg=libgraphviz-dev
- name: install gfortran
apt: pkg=gfortran
- name: install libopenblas-dev
apt: pkg=libopenblas-dev
- name: install liblapack-dev
apt: pkg=liblapack-dev
- name: install libxml2-dev
apt: pkg=libxml2-dev
- name: Install libgeos
apt: pkg=libgeos-dev
- name: Install python-dev
apt: pkg=python-dev
- name: Install libmysqlclient-dev
apt: pkg=libmysqlclient-dev
- name: Install build-essential for gcli
apt: pkg=build-essential state=present
- name: Git clone ruby-build
shell: git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
- name: install ruby-build
shell: sh install.sh chdir=~/.rbenv/plugins/ruby-build/
- name: Install ruby version
shell: rbenv install 1.9.3-p362
- name: Set rbenv version
shell: rbenv global 1.9.3-p362
- name: Install gcli
shell: rbenv exec gem install github_cli
- name: TEMPORARILY DISABLE gcli
shell: echo "#!/bin/bash\necho gcli" > /usr/local/bin/gcli
...@@ -11,12 +11,30 @@ ...@@ -11,12 +11,30 @@
creates=/var/tmp/{{ phantomjs_folder }} creates=/var/tmp/{{ phantomjs_folder }}
- name: Install PhantomJS - name: Install PhantomJS
command: mv /var/tmp/{{ phantomjs_folder }}/bin/phantomjs /usr/local/bin/phantomjs command: mv /var/tmp/{{ phantomjs_folder }} /usr/local/bin/phantomjs
creates=/usr/local/bin/phantomjs creates=/usr/local/bin/phantomjs
- name: Set PhantomJS permissions - name: Set PhantomJS permissions
command: chmod go+rx /usr/local/bin/phantomjs command: chmod go+rx /usr/local/bin/phantomjs
- name: Install chrome dependencies
apt: pkg=libgconf2-4
- name: Install chrome dependencies 2
apt: pkg=libxss1
- name: Install chrome dependencies 3
apt: pkg=libnss3-1d
- name: Install chrome dependencies 4
apt: pkg=libcurl3
- name: Install chrome dependencies 5
apt: pkg=xdg-utils
- name: Install unzip O_o
apt: pkg=unzip
- name: Install Google Chrome - name: Install Google Chrome
command: wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb command: wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
chdir=/var/tmp chdir=/var/tmp
...@@ -29,9 +47,14 @@ ...@@ -29,9 +47,14 @@
- name: Install Google Chrome 3 - name: Install Google Chrome 3
command: apt-get -f -y install command: apt-get -f -y install
#- name: Install ChromeDriver - name: Install ChromeDriver
# shell: wget --quiet http://chromedriver.googlecode.com/files/chromedriver2_linux64_0.8.zip \ shell: wget --quiet https://chromedriver.googlecode.com/files/chromedriver_linux64_2.1.zip
# unzip chromedriver2_linux64_0.8.zip \
# mv chromedriver /usr/local/bin/chromedriver \ - name: Install ChromeDriver 2
# chmod go+rx /usr/local/bin/chromedriver shell: unzip chromedriver_linux64_2.1.zip
# chdir=/var/tmp
- name: Install ChromeDriver 3
shell: mv chromedriver /usr/local/bin/chromedriver
- name: Install Chromedriver 4
shell: chmod go+rx /usr/local/bin/chromedriver
\ No newline at end of file
--- ---
- include: jenkins.yml - include: jenkins.yml
- include: xvfb.yml - include: xvfb.yml
- include: browsers.yml
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment