Skip to content
Snippets Groups Projects
Commit 18c15cb5 authored by Mike Greiling's avatar Mike Greiling
Browse files

check that yarn is installed and print a useful error message if not

parent 83371d07
No related branches found
No related tags found
1 merge request!275Use yarn instead of npm in Makefile
This commit is part of merge request !275. Comments created here will be created in the context of that merge request.
Loading
Loading
@@ -21,7 +21,7 @@ all: gitlab-setup gitlab-shell-setup gitlab-workhorse-setup support-setup gitaly
 
# Set up the GitLab Rails app
 
gitlab-setup: gitlab/.git gitlab-config bundler .gitlab-bundle .gitlab-yarn
gitlab-setup: gitlab/.git gitlab-config bundler .gitlab-bundle yarn .gitlab-yarn
 
gitlab/.git:
git clone ${gitlab_repo} gitlab
Loading
Loading
@@ -59,6 +59,14 @@ gitlab/public/uploads:
bundler:
command -v $@ > /dev/null || gem install $@
 
.PHONY: yarn
yarn:
@command -v $@ > /dev/null || {\
echo "Error: Yarn executable was not detected in the system.";\
echo "Download Yarn at https://yarnpkg.com/en/docs/install";\
exit 1;\
}
# Set up gitlab-shell
 
gitlab-shell-setup: symlink-gitlab-shell ${gitlab_shell_clone_dir}/.git gitlab-shell/config.yml bundler .gitlab-shell-bundle gitlab-shell/.gitlab_shell_secret
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment