Skip to content

Commit

Permalink
Merge pull request dbussink#3 from dbussink/dbussink/setup-travis
Browse files Browse the repository at this point in the history
Add Travis configuration
  • Loading branch information
dbussink committed Dec 29, 2014
2 parents 3fc37f6 + 7ef5959 commit 2880e6d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: ruby
rvm:
- 2.2
- 2.1
- 2.0.0
- 1.9.3
- rbx-2
sudo: false
cache: bundler
2 changes: 1 addition & 1 deletion ext/geoip2_compat/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
extension_name = "geoip2_compat"

$LDFLAGS << " #{ENV['LDFLAGS']}"
$CFLAGS << " #{ENV['CFLAGS']}"
$CFLAGS << " -std=c99 #{ENV['CFLAGS']}"

RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']

Expand Down
1 change: 1 addition & 0 deletions geoip2_compat.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Gem::Specification.new do |s|

s.add_development_dependency 'rake', '~>10.0'
s.add_development_dependency 'rake-compiler', '~> 0'
s.add_development_dependency 'test-unit'
end

0 comments on commit 2880e6d

Please sign in to comment.