Skip to content
Snippets Groups Projects
Verified Commit 9ca35dd8 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: add new devenv.nix #2

parent 6a0b826d
No related branches found
No related tags found
No related merge requests found
# THIS FILE IS AUTOGENERATED BY THE DEVENVSHELL
# DO NOT EDIT THIS FILE MANUALLY
# INSTEAD EDIT THE DEVENVSHELL CONFIGURATION FILE devenv.nix
# AND OPEN A SHELL WITH THE COMMAND devenv shell
#
image: docker-registry.schukai.com:443/nixos-ci-devenv:latest
services:
- docker:dind
variables:
# The repo name as used in
# https://github.com/nix-community/NUR/blob/master/repos.json
......@@ -13,7 +19,6 @@ variables:
DOCKER_DRIVER: overlay2
GIT_DEPTH: 10
stages:
- test
- deploy
......@@ -62,4 +67,3 @@ deploy:
artifacts:
paths:
- dist
# THIS FILE IS AUTOGENERATED BY THE DEVENVSHELL
# DO NOT EDIT THIS FILE MANUALLY
# INSTEAD EDIT THE DEVENVSHELL CONFIGURATION FILE devenv.nix
# AND OPEN A SHELL WITH THE COMMAND devenv shell
#
# Information about the task runner can be found here:
# https://taskfile.dev
version: '3'
......@@ -10,7 +17,7 @@ tasks:
test:
desc: Execute unit tests in Go.
cmds:
cmds:
- echo "Execute unit tests in Go."
- go test -cover -v ./...
- go test -bench .
......@@ -22,12 +29,19 @@ tasks:
- echo "Conduct fuzzing tests."
- go test -v -fuzztime=30s -fuzz=Fuzz ./...
update-licenses:
add-licenses:
desc: Attach license headers to Go files.
cmds:
- echo "Attach license headers to Go files."
- go-licenses save ./... --save_path=licenses --force --ignore=gitlab.schukai.com
- go install github.com/google/addlicense@latest
- addlicense -c "schukai GmbH" -s -l "AGPL-3.0" ./*.go
silent: true
check-licenses:
desc: Check license headers of Go files.
silent: true
cmds:
- go-licenses save "$(get-go-default-packages)" --ignore "gitlab.schukai.com" --force --save_path ${DEVENV_ROOT}/licenses/
check:
desc: Confirm repository status.
......@@ -35,17 +49,11 @@ tasks:
- git diff-index --quiet HEAD || (echo "There are uncommitted changes after running make. Please commit or stash them before running make."; exit 1)
silent: true
build:
desc: Compile the application,
commit:
desc: Commit changes to the repository.
aliases:
- b
vars:
DEVENV_ROOT:
sh: echo "$DEVENV_ROOT"
- c
- ci
- git-commit
cmds:
- devenv shell build-app
sources:
- source/**/*.go
- source/**/*.mod
- dist/**
- do-git-commit
This diff is collapsed.
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