Added alpha travis setup

This commit is contained in:
Priit Tark 2015-02-20 17:43:20 +02:00
parent 41384bec24
commit fd500f4ee1
4 changed files with 20 additions and 1 deletions

15
.travis.yml Normal file
View file

@ -0,0 +1,15 @@
language: ruby
rvm:
- 2.2
- ruby-head
sudo: false
script: 'ci/travis.rb'
before_install:
- gem install bundler
- "rm ${BUNDLE_GEMFILE}.lock"
before_script:
- bundle update
cache: bundler
addons:
postgresql: "9.3"

View file

@ -110,4 +110,7 @@ group :development, :test do
# dev tools # dev tools
gem 'unicorn' gem 'unicorn'
# for travis
gem 'rake'
end end

View file

@ -478,6 +478,7 @@ DEPENDENCIES
railroady (~> 1.3.0) railroady (~> 1.3.0)
rails (= 4.2.0) rails (= 4.2.0)
rails-settings-cached (~> 0.4.1) rails-settings-cached (~> 0.4.1)
rake
ransack (~> 1.5.1) ransack (~> 1.5.1)
rspec-rails (~> 3.0.2) rspec-rails (~> 3.0.2)
rubocop (~> 0.26.1) rubocop (~> 0.26.1)

View file

@ -30,7 +30,7 @@ begin
end end
Rake::Task[:default].prerequisites.clear Rake::Task[:default].prerequisites.clear
task default: :test task default: 'test:other'
def test_against_server def test_against_server
_stdin, _stdout, _stderr, wait_thr = Open3.popen3('unicorn -E test -p 8989') _stdin, _stdout, _stderr, wait_thr = Open3.popen3('unicorn -E test -p 8989')