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
OpenEdx
configuration
Commits
ad6b3c91
Commit
ad6b3c91
authored
Aug 16, 2013
by
lapentab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix naming conventions
parent
4f26c25b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
35 deletions
+36
-35
playbooks/roles/jenkins/tasks/browsers.yml
+13
-13
playbooks/roles/jenkins/tasks/jenkins.yml
+15
-15
playbooks/roles/jenkins/tasks/python-pkgs.yml
+3
-3
playbooks/roles/jenkins/tasks/xvfb.yml
+5
-4
No files found.
playbooks/roles/jenkins/tasks/browsers.yml
View file @
ad6b3c91
---
-
name
:
Install Firefox
-
name
:
browsers |
Install Firefox
apt
:
pkg=firefox
-
name
:
Download PhantomJS
-
name
:
browsers |
Download PhantomJS
get_url
:
url={{ jenkins_phantomjs_url }}
dest=/var/tmp/{{ jenkins_phantomjs_archive }}
-
name
:
Untar PhantomJS
-
name
:
browsers |
Untar PhantomJS
command
:
tar -xjf /var/tmp/{{ jenkins_phantomjs_archive }} -C /var/tmp/
creates=/var/tmp/{{ jenkins_phantomjs_folder }}
-
name
:
Install PhantomJS
-
name
:
browsers |
Install PhantomJS
command
:
mv /var/tmp/{{ jenkins_phantomjs_folder }} /usr/local/bin/phantomjs
creates=/usr/local/bin/phantomjs
-
name
:
Set PhantomJS permissions
-
name
:
browsers |
Set PhantomJS permissions
file
:
path=/usr/local/bin/phantomjs mode=0755 state=directory
-
name
:
Install chrome dependencies
-
name
:
browsers |
Install chrome dependencies
apt
:
pkg=libgconf2-4,libxss1,libnss3-1d,libcurl3,xdg-utils
-
name
:
Install unzip O_o
-
name
:
browsers |
Install unzip O_o
apt
:
pkg=unzip
-
name
:
Install Google Chrome
-
name
:
browsers |
Install Google Chrome
get_url
:
url=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb dest=/var/tmp/google-chrome-stable_current_amd64.deb
-
name
:
Install Google Chrome 2
-
name
:
browsers |
Install Google Chrome 2
command
:
dpkg -i google-chrome-stable_current_amd64.deb
chdir=/var/tmp
ignore_errors
:
True
-
name
:
Install ChromeDriver
-
name
:
browsers |
Install ChromeDriver
get_url
:
url=https://chromedriver.googlecode.com/files/chromedriver_linux64_2.1.zip dest=/var/tmp/chromedriver_linux64_2.1.zip
-
name
:
Install ChromeDriver 2
-
name
:
browsers |
Install ChromeDriver 2
shell
:
unzip /var/tmp/chromedriver_linux64_2.1.zip
chdir=/var/tmp
-
name
:
Install ChromeDriver 3
-
name
:
browsers |
Install ChromeDriver 3
shell
:
mv /var/tmp/chromedriver /usr/local/bin/chromedriver
-
name
:
Install Chromedriver 4
-
name
:
browsers |
Install Chromedriver 4
file
:
path=/usr/local/bin/chromedriver mode=0755
playbooks/roles/jenkins/tasks/jenkins.yml
View file @
ad6b3c91
---
-
name
:
Add the jenkins user to the edx group
-
name
:
jenkins |
Add the jenkins user to the edx group
user
:
name=jenkins append=yes groups="edx"
-
name
:
edxlocal
| install jenkins specific system packages
-
name
:
jenkins
| install jenkins specific system packages
apt
:
pkg={{','.join(jenkins_debian_pkgs)}} state=present
-
name
:
Install gcli
-
name
:
jenkins |
Install gcli
sudo_user
:
jenkins
shell
:
/home/jenkins/.rbenv/bin/rbenv exec gem install github_cli
# This is done so that it will not report back to github while testing
-
name
:
TEMPORARILY DISABLE gcli
-
name
:
jenkins |
TEMPORARILY DISABLE gcli
shell
:
echo "#!/bin/bash\necho gcli" > /usr/local/bin/gcli
-
name
:
Install Jenkins
-
name
:
jenkins |
Install Jenkins
shell
:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
-
name
:
Install Jenkins 2
-
name
:
jenkins |
Install Jenkins 2
shell
:
sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
-
name
:
Install Jenkins 3
-
name
:
jenkins |
Install Jenkins 3
shell
:
apt-get update
-
name
:
install jenkins 4
-
name
:
jenkins |
install jenkins 4
apt
:
pkg=jenkins state=present
-
name
:
Make plugins directory
-
name
:
jenkins |
Make plugins directory
sudo_user
:
jenkins
shell
:
mkdir -p {{ jenkins_home }}/plugins
-
name
:
Make virtualenv directory
-
name
:
jenkins |
Make virtualenv directory
shell
:
mkdir -p /mnt/virtualenvs
-
name
:
Chown virtualenv directory
-
name
:
jenkins |
Chown virtualenv directory
file
:
path=/mnt/virtualenvs/ state=directory owner=jenkins recurse=yes
-
name
:
Make pip-cache directory
-
name
:
jenkins |
Make pip-cache directory
shell
:
mkdir -p /mnt/pip-cache
-
name
:
Chown pip-cache directory
-
name
:
jenkins |
Chown pip-cache directory
file
:
path=/mnt/pip-cache/ state=directory owner=jenkins recurse=yes
-
name
:
Allow /usr/local/bin to be executable
-
name
:
jenkins |
Allow /usr/local/bin to be executable
shell
:
chmod -R go+x /usr/local/bin
-
name
:
Install Jenkins plugins
-
name
:
jenkins |
Install Jenkins plugins
sudo_user
:
jenkins
get_url
:
url=http://updates.jenkins-ci.org/latest/${item}
dest={{ jenkins_home }}/plugins/${item}
...
...
playbooks/roles/jenkins/tasks/python-pkgs.yml
View file @
ad6b3c91
---
-
name
:
Symbolic link site packages
-
name
:
python packages |
Symbolic link site packages
file
:
src=/usr/local/lib/python2.7/site-packages dest=/usr/local/lib/python2.7/dist-packages state=link
ignore_errors
:
yes
-
name
:
install numpy
-
name
:
python packages |
install numpy
shell
:
pip install numpy==1.6.2
-
name
:
install scipy
-
name
:
python packages |
install scipy
shell
:
pip install scipy==0.11.0
playbooks/roles/jenkins/tasks/xvfb.yml
View file @
ad6b3c91
---
-
name
:
install xvfb
-
name
:
xvfb |
install xvfb
apt
:
pkg=xvfb state=present
-
name
:
configure display
-
name
:
xvfb |
configure display
template
:
src=xvfb.sh.j2 dest=/etc/profile.d/xvfb.sh owner=root group=root mode=0755
-
name
:
create xvfb upstart script
-
name
:
xvfb |
create xvfb upstart script
template
:
src=xvfb.conf.j2 dest=/etc/init/xvfb.conf owner=root group=root
-
name
:
start xvfb
-
name
:
xvfb |
start xvfb
shell
:
start xvfb
ignore_errors
:
yes
\ No newline at end of file
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