This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir casperjs1.1 | |
cd casperjs1.1 | |
wget https://codeload.github.com/n1k0/casperjs/legacy.zip/1.1-beta1 | |
unzip 1.1-beta1 | |
export PATH=~/clone/casperjs1.1/n1k0-casperjs-cd1fab5/bin:$PATH | |
casperjs --version | |
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'CI' => true, | |
'CI_BUILD_NUMBER' => id, | |
'CI_BUILD_URL' => project_build_url(project, self), | |
'CI_PULL_REQUEST' => false, | |
'CI_BRANCH' => branch, | |
'CI_COMMIT_ID' => commit_id, | |
'CI_COMMITTER_NAME' => name, | |
'CI_COMMITTER_EMAIL' => email, | |
'CI_COMMITTER_USERNAME' => github_username, | |
'CI_MESSAGE' => message, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'coveralls/rake/task' | |
Coveralls::RakeTask.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo_token: YOUR_COVERALLS_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'coveralls' | |
Coveralls.wear! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Coveralls with Rspec and Cucumber | |
require 'coveralls' | |
Coveralls.wear_merged! | |
SimpleCov.merge_timeout 3600 | |
#MAKING SURE SIMPLECOV WORKS WITH THE PARALLEL_TESTS GEM | |
SimpleCov.command_name "RSpec/Cucumber:#{Process.pid.to_s}#{ENV['TEST_ENV_NUMBER']}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
heroku pgbackups:capture --expire --app YOUR_PRODUCTION_APP_NAME | |
heroku pgbackups:restore DATABASE `heroku pgbackups:url --app YOUR_PRODUCTION_APP` --app YOUR_STAGING_APP --confirm YOUR_STAGING_APP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'heroku', require: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Postgres Repository | |
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' | |
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - | |
apt-get install postgresql-9.2 postgresql-contrib-9.2 | |
#Install POSTGIS | |
apt-get install postgresql-server-dev-9.2 libgeos-dev libproj-dev libgdal-dev -y -q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Run with casperjs test translate.coffee | |
casper.start 'http://translate.google.com/', -> | |
@.sendKeys('#source', 'Guten Tag'); | |
@.then -> | |
@.click '#gt-submit' | |
@.waitForText('Good day') | |
@.then -> | |
@.test.assertSelectorHasText '#result_box', 'Good day' | |
@.then -> |