Skip to content

Instantly share code, notes, and snippets.

@tkhduracell
Last active August 29, 2015 14:13
Show Gist options
  • Save tkhduracell/260b9d421167aeebd6b3 to your computer and use it in GitHub Desktop.
Save tkhduracell/260b9d421167aeebd6b3 to your computer and use it in GitHub Desktop.
My Jenkins: CasperJS, AndroidSDK
wget http://dl.google.com/android/android-sdk_r24.0.2-linux.tgz
tar -xf android-sdk_r24.0.2-linux.tgz
rm android-sdk_r24.0.2-linux.tgz
cd android-sdk-linux
( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui --filter platform-tool,extra-android-support,android-21,build-tools-21.1.2
android update sdk --no-ui
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list
apt-get update
apt-get install jenkins
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
server {
listen 80;
server_name ci.domain.com;
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 150;
proxy_send_timeout 100;
proxy_read_timeout 100;
proxy_buffers 4 32k;
client_max_body_size 8m;
client_body_buffer_size 128k;
}
}
PHANTOMJS_VERSION=phantomjs-1.9.7-linux-x86_64
cd /usr/local/share
wget "https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMJS_VERSION.tar.bz2"
tar xjf "$PHANTOMJS_VERSION.tar.bz2"
rm "$PHANTOMJS_VERSION.tar.bz2"
sudo ln -s "/usr/local/share/$PHANTOMJS_VERSION/bin/phantomjs" /usr/local/share/phantomjs
sudo ln -s "/usr/local/share/$PHANTOMJS_VERSION/bin/phantomjs" /usr/local/bin/phantomjs
sudo ln -s "/usr/local/share/$PHANTOMJS_VERSION/bin/phantomjs" /usr/bin/phantomjs
apt-get install git
git clone git://github.com/n1k0/casperjs.git
cd casperjs
ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment