diff options
| author | Alban Peignier | 2018-02-12 00:06:14 +0100 | 
|---|---|---|
| committer | Alban Peignier | 2018-02-12 00:06:14 +0100 | 
| commit | daa0e3bb7f2be6ddf1bfa794187c892423b8227a (patch) | |
| tree | 9c60b05e00f5b1c42444360e0e61d1f5477151ce | |
| parent | 970f57794a225ad053f51af009b0965ed1b1c4af (diff) | |
| download | chouette-core-daa0e3bb7f2be6ddf1bfa794187c892423b8227a.tar.bz2 | |
Add CHOUETTE_DEPLOY_DISABLED to disable deploy in ci task
| -rw-r--r-- | lib/tasks/ci.rake | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index c46cf7416..89f9aa9c8 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -40,11 +40,13 @@ namespace :ci do    end    task :jest do -    sh "node_modules/.bin/jest" unless ["CHOUETTE_JEST_DISABLED"] +    sh "node_modules/.bin/jest" unless ENV["CHOUETTE_JEST_DISABLED"]    end    desc "Deploy after CI"    task :deploy do +    return if ENV["CHOUETTE_DEPLOY_DISABLED"] +      if deploy_env        sh "cap #{deploy_env} deploy:migrations"      else | 
