Skip to content

Commit

Permalink
Added .travis.yml
Browse files Browse the repository at this point in the history
Change-Id: Iff43630b0f17c5d729e03da7a7c4243a3645ec27
Signed-off-by: Stephan Hagemann <[email protected]>
Reviewed-on: https://gerrit.instructure.com/28593
Tested-by: Jenkins <[email protected]>
Product-Review: Bryan Madsen <[email protected]>
Reviewed-by: Bryan Madsen <[email protected]>
QA-Review: Bryan Madsen <[email protected]>
  • Loading branch information
codekitchen committed Jan 15, 2014
1 parent 195dbb0 commit c0ef464
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
rvm:
- "1.9.3"
before_script:
- find ./config -depth -name "*.yml.example" -exec sh -c 'cp "$1" "${1%.yml.example}.yml"' _ {} \;
- psql -c 'create database myapp_test;' -U postgres; cp ./config/database.yml.travis ./config/database.yml
- RAILS_ENV=test rake db:migrate
script:
- bundle exec rake
gemfile:
- Gemfile
env:
- SPEC="spec/apis/**/[a-m]*_spec.rb"
- SPEC="spec/apis/**/[n-z]*_spec.rb"
- SPEC="spec/controllers/**/*_spec.rb"
- SPEC="spec/gem_integration/**/*_spec.rb"
- SPEC="spec/helpers/**/*_spec.rb"
- SPEC="spec/initializers/**/*_spec.rb"
- SPEC="spec/integration/**/*_spec.rb"
- SPEC="spec/lib/**/*_spec.rb"
- SPEC="spec/messages/**/*_spec.rb"
- SPEC="spec/migrations/**/*_spec.rb"
- SPEC="spec/models/[a-m]*_spec.rb"
- SPEC="spec/models/[n-z]*_spec.rb"
- SPEC="spec/models/*/*_spec.rb"
- SPEC="spec/observers/**/*_spec.rb"
- SPEC="spec/presenters/**/*_spec.rb"
- SPEC="spec/selenium/**/*_spec.rb"
- SPEC="spec/serializers/**/*_spec.rb"
- SPEC="spec/services/**/*_spec.rb"
- SPEC="spec/views/**/*_spec.rb"
4 changes: 4 additions & 0 deletions config/database.yml.travis
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test:
adapter: postgresql
database: myapp_test
username: postgres

0 comments on commit c0ef464

Please sign in to comment.