Maintenance: Added ShellCheck for linting of shell scripts.
This commit is contained in:
parent
837a9bd45c
commit
333d4aef8c
2 changed files with 12 additions and 5 deletions
|
@ -13,6 +13,14 @@ rubocop:
|
||||||
- bundle install -j $(nproc) --path vendor
|
- bundle install -j $(nproc) --path vendor
|
||||||
- bundle exec rubocop --parallel
|
- bundle exec rubocop --parallel
|
||||||
|
|
||||||
|
shellcheck:
|
||||||
|
<<: *template_pre
|
||||||
|
image: koalaman/shellcheck-alpine:stable
|
||||||
|
before_script:
|
||||||
|
- echo "Disable default before_script."
|
||||||
|
script:
|
||||||
|
- shellcheck -S error $(find . -name "*.sh" | grep -v "/vendor/")
|
||||||
|
|
||||||
coffeelint:
|
coffeelint:
|
||||||
<<: *template_pre
|
<<: *template_pre
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -97,10 +97,9 @@ sudo -u "${USER}" -H bash -l -c 'cd ~/zammad && RAILS_ENV=production rake db:mig
|
||||||
sudo -u "${USER}" -H bash -l -c 'cd ~/zammad && RAILS_ENV=production rake db:seed'
|
sudo -u "${USER}" -H bash -l -c 'cd ~/zammad && RAILS_ENV=production rake db:seed'
|
||||||
sudo -u "${USER}" -H bash -l -c 'cd ~/zammad && RAILS_ENV=production rake assets:precompile'
|
sudo -u "${USER}" -H bash -l -c 'cd ~/zammad && RAILS_ENV=production rake assets:precompile'
|
||||||
|
|
||||||
cp "${HOMEDIR}/zammad/script/init.d/zammad /etc/init.d/zammad"
|
cp "${HOMEDIR}/zammad/script/init.d/zammad" /etc/init.d/zammad
|
||||||
chmod +x /etc/init.d/zammad
|
chmod +x /etc/init.d/zammad
|
||||||
|
|
||||||
if [ "$OS" = "Debian" ]; then
|
if [ "$OS" = "Debian" ]; then
|
||||||
update-rc.d zammad defaults
|
update-rc.d zammad defaults
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue