diff options
| author | Alban Peignier | 2016-04-26 12:54:47 +0200 | 
|---|---|---|
| committer | Alban Peignier | 2016-04-26 12:54:47 +0200 | 
| commit | dbb15e8272f921ceaa14ffbd913d0d1ab8beb7eb (patch) | |
| tree | 5704d5a7aed035e0e5131068756c8588b85a65d5 /lib/tasks | |
| parent | 835621d1c9a295623571d76a7579be9745e71aeb (diff) | |
| download | chouette-core-dbb15e8272f921ceaa14ffbd913d0d1ab8beb7eb.tar.bz2 | |
Add basic ci tasks. Refs #802
Diffstat (limited to 'lib/tasks')
| -rw-r--r-- | lib/tasks/ci.rake | 21 | 
1 files changed, 15 insertions, 6 deletions
| diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 092a4619f..b198a374a 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -1,11 +1,20 @@  namespace :ci do -  task :db_travis_config do -    cp "config/database.yml.travis", "config/database.yml" +  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 -    cp "chouette2.war", "/var/lib/tomcat6/webapps/" -  end   -  task :build => [ "war", "ci:deploy"] +    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"] | 
