build-project
All checks were successful
/ job (push) Successful in 3m0s

This commit is contained in:
Marc Beninca 2024-05-30 12:35:05 +02:00
parent 380684eed9
commit 5a2cf6253b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 11 additions and 9 deletions

View file

@ -25,6 +25,16 @@ def cd_browse_workspace():
print(path) print(path)
def cd_build_project():
for extension in ['py', 'sh']:
path = os.path.join(project.root, f'build.{extension}')
if os.path.exists(path):
ps.run(path)
break
else:
pass
def cd_clone_branch(): def cd_clone_branch():
print(f'''\ print(f'''\
{project.url} {project.url}
@ -48,6 +58,7 @@ def install_commands(path):
user = '/usr/local/bin' user = '/usr/local/bin'
for command in [ for command in [
'browse-workspace', 'browse-workspace',
'build-project',
'clone-branch', 'clone-branch',
'list-environment', 'list-environment',
]: ]:

View file

@ -1,9 +0,0 @@
if [ -x './build.py' ] ; then
./build.py \
|| exit
elif [ -x './build.sh' ] ; then
./build.sh \
|| exit
else
exit
fi