Travis-CI is trying to figure out the best way for Go projects with test dependencies to run on their platform. The included .yml file here shows that simply running a series of "go get" commands for the external dependencies required by test files in the script
line works.
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
module ActionView::Helpers::TextHelper | |
def truncate(text, *args) | |
options = args.extract_options! | |
# support either old or Rails 2.2 calling convention: | |
unless args.empty? | |
options[:length] = args[0] || 30 | |
options[:omission] = args[1] || "..." | |
end | |
options.reverse_merge!(:length => 30, :omission => "...") |
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
/ This SASS function makes it easy to get cross-browser opacity. | |
/ | |
/ Firefox and Safari use CSS opacity. | |
/ Internet Explorer 7 and 8 each require their own flavor of the opacity alpha filter. | |
/ | |
/ See http://www.quirksmode.org/css/opacity.html for more info on opacity. | |
/ | |
/ Pass an opacity value between 0.0 and 1.0 | |
=opacity(!value) | |
:opacity= !value |
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
namespace :deploy do | |
desc 'Bundle and minify the JS and CSS files' | |
task :precache_assets, :roles => :app do | |
root_path = File.expand_path(File.dirname(__FILE__) + '/..') | |
jammit_path = Dir["#{root_path}/vendor/gems/jammit-*/bin/jammit"].first | |
yui_lib_path = Dir["#{root_path}/vendor/gems/yui-compressor-*/lib"].first | |
assets_path = "#{root_path}/public/assets" | |
# Precaching assets | |
run_locally "ruby -I#{yui_lib_path} #{jammit_path}" |
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
namespace :bundler do | |
task :install, :roles => :app, :except => { :no_release => true } do | |
run("gem install bundler --source=http://gemcutter.org") | |
end | |
task :symlink_vendor, :roles => :app, :except => { :no_release => true } do | |
shared_gems = File.join(shared_path, 'vendor/gems/ruby/1.8') | |
release_gems = "#{release_path}/vendor/gems/ruby/1.8" | |
# if you don't commit your cache, add cache to this list | |
%w(gems specifications).each do |sub_dir| |
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
module UnicornPowers | |
def fire_super_ray_beam | |
ray_beam_power | |
end | |
def ray_beam_power | |
"pow" | |
end | |
end |
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
language: java | |
jdk: openjdk7 | |
before_install: | |
- gem update --system | |
- gem install compass | |
script: mvn -q clean package |
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
language: ruby | |
rvm: 2.0.0 | |
bundler_args: --without development --quiet --path=~/.bundle --deployment | |
services: | |
- elasticsearch | |
before_install: | |
- chmod -R 777 ./script/travis | |
- 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc' |
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
#travis.yml | |
language: ruby | |
rvm: 2.0.0 | |
addons: | |
postgresql: "9.3" | |
cache: bundler |