Skip to content

Commit

Permalink
Merge pull request #62 from jmillerv/26-automated-environment-setup
Browse files Browse the repository at this point in the history
add taskfile.dev & update readme
  • Loading branch information
jmillerv committed Jul 31, 2023
2 parents fb3bfa9 + 065b70a commit 25d910f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,15 @@ streams don't work.

## Feature Requests
I've built this out for my specific use case and released it to the public when I considered it feature complete. Suggestions are welcome for adding additional features.

## Development Setup
1. Install [golang](https://go.dev/doc/install)
2. Install [taskfile.dev](https://taskfile.dev/installation/) on your machine.

3. Run `task install_deps` in the root of this repo.

4. Run `task run` in the root of this repo.

If all passes without errors, you should be set to use this binary. Checkout the `taskfile.dev` for additional features
commands you can run.

24 changes: 24 additions & 0 deletions taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '3'

tasks:
# Builds the go-dj binary
build:
cmds:
- go build -v -o go-dj .
- chmod +x go-dj

# Installs dependencies necessary for go-dj to output audio
install_deps:
cmds:
- sudo apt install libasound2-dev libudev-dev pkg-config

# Runs go-dj
run:
cmds:
- task: build
- ./go-dj --help

# Run the tests
test:
cmds:
- go test -v ./content -run Test

0 comments on commit 25d910f

Please sign in to comment.