Skip to content

Instantly share code, notes, and snippets.

View joshk's full-sized avatar
🥸

Josh Kalderimis joshk

🥸
  • Valued
  • Wellington, NZ
  • 13:45 (UTC +01:00)
View GitHub Profile
@joshk
joshk / content-travis
Last active December 24, 2015 08:19 — forked from lorgio/content-travis
we export DISPLAY, no need to use export, we already export RAILS_ENV, use --deployment
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'
@joshk
joshk / gist:6084102
Last active December 20, 2015 06:09 — forked from paulhernandez/gist:6084068
language: java
jdk: openjdk7
before_install:
- gem update --system
- gem install compass
script: mvn -q clean package
@joshk
joshk / doc.md
Created July 26, 2012 13:39 — forked from mrb/doc.md
Building Go on Travis with test deps

Go on Travis

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.

# encoding: utf-8
ENV['LIB_NAME'] = 'spree_reviews'
require 'bundler'
Bundler::GemHelper.install_tasks
Bundler.setup
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fa1efc39a76, pid=20600, tid=140333556688640
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# j org.jruby.RubyModule.cacheHit(Ljava/lang/String;)Lorg/jruby/runtime/callsite/CacheEntry;+5
#
vagrant@vserver16:/tmp/travis/builds/travis_ci/travis-ci$ bundle install
Fetching source index for http://rubygems.org/
Using rake (0.9.2)
Using Platform (0.4.0)
Using open4 (1.0.1)
Using POpen4 (0.1.4)
Installing SystemTimer (1.2.3) with native extensions
Installing abstract (1.0.0)
Installing activesupport (3.0.8)
Installing builder (2.1.2)
vagrant@vserver16:/tmp/travis/builds/travis_ci/travis-ci$ bundle exec rake db:drop db:create db:migrate test --trace
rake aborted!
wrong argument type NilClass (expected Module)
kernel/common/native_method.rb:43:in `load_extension'
kernel/delta/codeloader.rb:180:in `load_library'
kernel/common/codeloader.rb:46:in `require'
kernel/common/codeloader.rb:145:in `require'
kernel/common/kernel.rb:781:in `require'
/home/vagrant/.rvm/gems/rbx-2.0.0pre/gems/json-1.4.6/lib/json/ext.rb:7:in `__module_init__ (Ext)'
/home/vagrant/.rvm/gems/rbx-2.0.0pre/gems/json-1.4.6/lib/json/ext.rb:6:in `__module_init__ (JSON)'
vagrant@vserver16:/tmp/travis/builds/travis_ci/travis-ci$ bundle exec rake db:drop db:create db:migrate test --trace
rake aborted!
wrong argument type NilClass (expected Module)
kernel/common/native_method.rb:43:in `load_extension'
kernel/delta/codeloader.rb:180:in `load_library'
kernel/common/codeloader.rb:46:in `require'
kernel/common/codeloader.rb:145:in `require'
kernel/common/kernel.rb:781:in `require'
/home/vagrant/.rvm/gems/rbx-2.0.0pre/gems/json-1.4.6/lib/json/ext.rb:7:in `__module_init__ (Ext)'
/home/vagrant/.rvm/gems/rbx-2.0.0pre/gems/json-1.4.6/lib/json/ext.rb:6:in `__module_init__ (JSON)'
module UnicornPowers
def fire_super_ray_beam
ray_beam_power
end
def ray_beam_power
"pow"
end
end
require 'active_support/core_ext/array/wrap'
require 'active_support/core_ext/object/blank'
module ActionView
# = Action View Lookup Context
#
# LookupContext is the object responsible to hold all information required to lookup
# templates, i.e. view paths and details. The LookupContext is also responsible to
# generate a key, given to view paths, used in the resolver cache lookup. Since
# this key is generated just once during the request, it speeds up all cache accesses.