forked from DMXStage/dmxconnect
33 lines
752 B
YAML
Executable File
33 lines
752 B
YAML
Executable File
version: '3'
|
|
|
|
vars:
|
|
# Get the application name
|
|
repo_name:
|
|
sh: basename `git config --get remote.origin.url` .git
|
|
repo_version:
|
|
sh: |
|
|
tag=$(git describe --tags --abbrev=0 2>/dev/null || true)
|
|
if [ -z "$tag" ]; then
|
|
git rev-parse HEAD
|
|
else
|
|
echo $tag
|
|
fi
|
|
|
|
tasks:
|
|
# Installing the dependencies to develop dmxconnect
|
|
install:
|
|
cmds:
|
|
- echo "Installing dependencies to contribute to {{.repo_name}}..."
|
|
silent: true
|
|
|
|
# Running the application
|
|
run:
|
|
cmds:
|
|
- echo "Running {{.repo_name}}..."
|
|
silent: true
|
|
|
|
# Building the application
|
|
build:
|
|
cmds:
|
|
- echo "Generating {{.repo_name}}_v{{.repo_version}}.deb ..."
|
|
silent: true |