blob: b198a374a3af6a4948cbb9f45b7827f504bfc6d4 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | namespace :ci do
  desc "Prepare CI build"
  task :setup do
    cp "config/database/jenkins.yml", "config/database.yml"
    sh "RAILS_ENV=test rake db:migrate"
  end
  desc "Deploy after CI"
  task :deploy do
    sh "cap dev deploy"
  end
  desc "Clean test files"
  task :clean do
    sh "rm -rf log/test.log"
  end
end
desc "Run continuous integration tasks (spec, ...)"
task :ci => ["ci:setup", "spec", "ci:deploy", "ci:clean"]
 |