diff options
| author | mo khan <mo@mokhan.ca> | 2013-07-19 11:09:57 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-07-19 11:09:57 -0600 |
| commit | 0fd9cc9f695d90d20aa0bbdb3b16785d29fefb79 (patch) | |
| tree | 0a2e819475c10910840c43a9a15b02d706d1741e | |
| parent | d4cc5343f90412675facecb8055afd6b5ec6f6b2 (diff) | |
create rake task to run ci build
| -rw-r--r-- | lib/tasks/ci.rake | 12 | ||||
| -rw-r--r-- | script/ci.sh | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake new file mode 100644 index 0000000..a44124c --- /dev/null +++ b/lib/tasks/ci.rake @@ -0,0 +1,12 @@ +require 'rubygems' + +desc "run the ci build" +task :ci do + Rake::Task['log:clear'].execute + Rake::Task['tmp:cache:clear'].execute + Rake::Task['db:test:load'].execute + Rake::Task['db:migrate'].execute + Rake::Task['db:test:prepare'].execute + Rake::Task['spec'].execute + Rake::Task['teaspoon'].execute +end diff --git a/script/ci.sh b/script/ci.sh index ef7fe04..4af4a6f 100644 --- a/script/ci.sh +++ b/script/ci.sh @@ -10,4 +10,4 @@ echo 'installing gems' bundle install echo 'running tests' -bundle exec rake +bundle exec rake ci |
