On 25/06/12 18:10 -0700, Richard Su wrote:
Runs cucumber and rspec within a single build. Uses bundler.
Runs build for ruby 1.8.7 and 1.9.3.
Notifies freenode #aeolus when build is done.
Not sure how to actually review this, but looks reasonable, with minor
cleanup to rake tasks described below.
---
.travis.yml | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 .travis.yml
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..d2cdb85
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,30 @@
+language: ruby
+rvm:
+ - 1.8.7
+ - 1.9.3
+gemfile: src/Gemfile
+env:
+ - SUITE=cucumber
+ - SUITE=spec
+before_install:
+ - sed s/'pg'/'sqlite3'/ src/Gemfile.in > src/Gemfile
+install:
+ - cd src
+ - bundle install
+before_script:
+ - export USE_BUNDLER=yes
+ - cp config/database.sqlite config/database.yml
+ - rake dc:oauth_keys
you can remove the following 4 lines and replace with:
- rake db:setup
+ - rake db:drop
+ - rake db:create
+ - rake db:migrate
+ - rake db:seed
+ - rake db:test:prepare
+script:
+ - rake $SUITE
+notifications:
+ irc:
+ channels:
+ - "irc.freenode.org#aeolus"
+ use_notice: true
+ skip_join: false
\ No newline at end of file
--
1.7.7.6