forked from DMXStage/dmxconnect
This commit is contained in:
64
Taskfile.yml
Normal file → Executable file
64
Taskfile.yml
Normal file → Executable file
@@ -1,33 +1,33 @@
|
||||
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 ..."
|
||||
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
|
||||
Reference in New Issue
Block a user