From 35a218b047bf0c5fd68b92db79b18aa50e010680 Mon Sep 17 00:00:00 2001 From: Kurt Freytag Date: Wed, 13 Nov 2013 14:35:02 -0800 Subject: [PATCH] Setting up koality --- Gemfile.lock | 23 +++++++++++++---------- Rakefile | 27 +++++++++++++++++++++++++++ circle.yml | 9 --------- deja.gemspec | 1 + koality.yml | 16 ++++++++++++++++ 5 files changed, 57 insertions(+), 19 deletions(-) create mode 100644 Rakefile delete mode 100644 circle.yml create mode 100644 koality.yml diff --git a/Gemfile.lock b/Gemfile.lock index 867480a..d73175b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,8 +1,8 @@ GIT remote: https://github.com/andreasronge/neo4j-cypher.git - revision: 05e589ca79fb8e5e1abb2e4d2a9192f46d173660 + revision: 589afd7de23d08f4c867fa7ab7de837874f9c3ca specs: - neo4j-cypher (1.0.1) + neo4j-cypher (1.0.2) PATH remote: . @@ -17,10 +17,10 @@ PATH GEM remote: https://rubygems.org/ specs: - activemodel (4.0.0) - activesupport (= 4.0.0) + activemodel (4.0.1) + activesupport (= 4.0.1) builder (~> 3.1.0) - activesupport (4.0.0) + activesupport (4.0.1) i18n (~> 0.6, >= 0.6.4) minitest (~> 4.2) multi_json (~> 1.3) @@ -28,9 +28,11 @@ GEM tzinfo (~> 0.3.37) atomic (1.1.14) builder (3.1.4) - coderay (1.0.9) - diff-lcs (1.2.4) - factory_girl (4.2.0) + ci_reporter (1.9.0) + builder (>= 2.1.2) + coderay (1.1.0) + diff-lcs (1.2.5) + factory_girl (4.3.0) activesupport (>= 3.0.0) httpclient (2.3.4.1) i18n (0.6.5) @@ -47,8 +49,8 @@ GEM rubyzip (~> 0.9.7) oj (2.1.7) os (0.9.6) - pry (0.9.12.2) - coderay (~> 1.0.5) + pry (0.9.12.3) + coderay (~> 1.0) method_source (~> 0.8) slop (~> 3.4) rake (10.1.0) @@ -70,6 +72,7 @@ PLATFORMS ruby DEPENDENCIES + ci_reporter deja! factory_girl neo4j-cypher! diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..041ce62 --- /dev/null +++ b/Rakefile @@ -0,0 +1,27 @@ +require 'bundler' +require 'rspec/core/rake_task' +require 'ci/reporter/rake/rspec' + +begin + require 'bundler/setup' +rescue LoadError + puts 'You must `gem install bundler` and `bundle install` to run rake tasks' +end + +Bundler::GemHelper.install_tasks + +$: << File.expand_path("#{File.dirname(__FILE__)}/lib") + +RDoc::Task.new(:rdoc) do |rdoc| + rdoc.rdoc_dir = 'rdoc' + rdoc.title = 'Deja' + rdoc.options << '--line-numbers' + rdoc.rdoc_files.include('README.rdoc') + rdoc.rdoc_files.include('lib/**/*.rb') +end + +RSpec::Core::RakeTask.new('spec') + +desc "Run Tests" +task :spec => 'ci:setup:rspec' +task :default => :spec diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 18c1e09..0000000 --- a/circle.yml +++ /dev/null @@ -1,9 +0,0 @@ -machine: - ruby: - version: 2.0.0-p247 -dependencies: - pre: - - "[[ -d ~/neo4j-community-1.9.4 ]] || ( curl -L 'http://download.neo4j.org/artifact?edition=community&version=1.9.4&distribution=tarball&dlid=2355712' | tar -xzf - -C ~ )" - - ~/neo4j-community-1.9.4/bin/neo4j start - cache_directories: - - "~/neo4j-community-1.9.4" diff --git a/deja.gemspec b/deja.gemspec index 07f2021..6b11234 100644 --- a/deja.gemspec +++ b/deja.gemspec @@ -20,6 +20,7 @@ Gem::Specification.new do |s| s.add_development_dependency "factory_girl" s.add_development_dependency "pry" s.add_development_dependency "rspec", "~>2.13.0" + s.add_development_dependency 'ci_reporter' s.add_dependency "activemodel", "~> 4.0.0" s.add_dependency "activesupport", "~> 4.0.0" diff --git a/koality.yml b/koality.yml new file mode 100644 index 0000000..c56e344 --- /dev/null +++ b/koality.yml @@ -0,0 +1,16 @@ +languages: + ruby: 2.0.0-p247 +setup: +- scripts: + - wget -O - http://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add - + - echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list + - apt-get update + - apt-get install neo4j=1.9.4 -y --force-yes + - bundle install --gemfile=Gemfile.server +test: + machines: 1 + scripts: + - tests: + script: BUNDLE_GEMFILE=Gemfile.server rake + timeout: 1800 + xunit: spec/reports \ No newline at end of file