Skip to content
Snippets Groups Projects
Commit b8c3052e authored by jurgenhaas's avatar jurgenhaas
Browse files

#41 Add support for ahoy scripts even in blank project and provide...

#41 Add support for ahoy scripts even in blank project and provide changelog extract as a first command
parent 25cd1e76
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ ADD config.fish /etc/fish/
ADD start.sh /usr/local/bin/.start
ADD configIdea.sh /usr/local/bin/.configIdea
ADD l3dComposer.php /usr/local/bin/.l3dComposer.php
ADD ahoy.changelog.yml /usr/local/bin/.ahoy.changelog.yml
ADD run/scripts/info /usr/local/bin/l3d
ADD run/scripts/version /usr/local/bin/version
ADD run/scripts/l3dnewversion /usr/local/bin/l3dnewversion
......
ahoyapi: v2
commands:
extract:
cmd: git log $(git describe --tags `git rev-list --tags --max-count=1`)..HEAD --oneline | cut -d' ' -f 2-999
usage: Extract changelog from Git for the current project since the last release.
......@@ -188,6 +188,20 @@ function initialSetup {
done
}
function setupAhoy {
if [[ ! -f .ahoy.yml ]]; then
echo "ahoyapi: v2" >.ahoy.yml
echo "commands:" >.ahoy.yml
fi
EXISTING=$(cat .ahoy.yml | grep "^ changelog:")
if [[ ! -n ${EXISTING} ]]; then
echo " changelog:" >.ahoy.yml
echo " imports:" >.ahoy.yml
echo " - /usr/local/bin/.ahoy.changelog.yml" >.ahoy.yml
echo " usage: Changelog tools." >.ahoy.yml
fi
}
readEnv
# Validate PHP version
INSTALLED_PHP_VERSION=$(php -r "echo(substr(phpversion(),0,3));")
......@@ -212,6 +226,7 @@ else
l3dComposer
fi
setupAhoy
if [[ -d /drupal/.idea ]]; then
/usr/local/bin/.configIdea
fi
......
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