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

chore: add new devenv.nix #1

parent b348c560
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 image: docker-registry.schukai.com:443/nixos-ci-devenv:latest
services: services:
- docker:dind - docker:dind
variables: variables:
# The repo name as used in # The repo name as used in
# https://github.com/nix-community/NUR/blob/master/repos.json # https://github.com/nix-community/NUR/blob/master/repos.json
...@@ -13,7 +19,6 @@ variables: ...@@ -13,7 +19,6 @@ variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
GIT_DEPTH: 10 GIT_DEPTH: 10
stages: stages:
- test - test
- deploy - deploy
......
# 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 # https://taskfile.dev
version: '3' version: '3'
...@@ -5,13 +12,16 @@ version: '3' ...@@ -5,13 +12,16 @@ version: '3'
tasks: tasks:
default: default:
cmds: cmds:
- task --list-all - task --list
silent: true silent: true
test: test:
desc: Execute unit tests in Go. desc: Execute unit tests in Go.
cmds: cmds:
- echo "Execute unit tests in Go." - echo "Execute unit tests in Go."
- go test -cover -v ./... - go test -cover -v ./...
- go test -bench .
- go test -race .
test-fuzz: test-fuzz:
desc: Conduct fuzzing tests.# desc: Conduct fuzzing tests.#
...@@ -23,8 +33,15 @@ tasks: ...@@ -23,8 +33,15 @@ tasks:
desc: Attach license headers to Go files. desc: Attach license headers to Go files.
cmds: cmds:
- echo "Attach license headers to Go files." - echo "Attach license headers to Go files."
- go install github.com/google/addlicense@latest
- addlicense -c "schukai GmbH" -s -l "AGPL-3.0" ./*.go - addlicense -c "schukai GmbH" -s -l "AGPL-3.0" ./*.go
silent: true 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: check:
desc: Confirm repository status. desc: Confirm repository status.
...@@ -32,17 +49,11 @@ tasks: ...@@ -32,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) - 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 silent: true
build: commit:
desc: Compile the application, desc: Commit changes to the repository.
aliases: aliases:
- b - c
vars: - ci
DEVENV_ROOT: - git-commit
sh: echo "$DEVENV_ROOT"
cmds: cmds:
- devenv shell build-app - do-git-commit
sources:
- source/**/*.go
- source/**/*.mod
- dist/**
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