diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-05-02 18:44:40 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-05-04 12:21:51 +0300 |
commit | 3960d974c378759d23c63f59135451054c47f54d (patch) | |
tree | e48b3737cd3dafb9faa2157d2ce79b15044c98f5 /lib/tasks/gitlab/shell.rake | |
parent | 68c12e15cc236548918f91393ebef3c06c124814 (diff) |
Compile gitlab-shell go executables
Diffstat (limited to 'lib/tasks/gitlab/shell.rake')
-rw-r--r-- | lib/tasks/gitlab/shell.rake | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/shell.rake b/lib/tasks/gitlab/shell.rake index 95687066819..ee2cdcdea1b 100644 --- a/lib/tasks/gitlab/shell.rake +++ b/lib/tasks/gitlab/shell.rake @@ -41,8 +41,14 @@ namespace :gitlab do # Generate config.yml based on existing gitlab settings File.open("config.yml", "w+") {|f| f.puts config.to_yaml} - # Launch installation process - system(*%w(bin/install) + repository_storage_paths_args) + [ + %w(bin/install) + repository_storage_paths_args, + %w(bin/compile) + ].each do |cmd| + unless Kernel.system(*cmd) + raise "command failed: #{cmd.join(' ')}" + end + end end # (Re)create hooks |