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

chore: add new devenv #1

parent 742f80a8
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 -v ./...
- go test -race -v ./...
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.
...@@ -8,5 +8,7 @@ gitlab.schukai.com/oss/libraries/go/utilities/pathfinder v0.3.1 h1:oyElaqEiyr2Xg ...@@ -8,5 +8,7 @@ gitlab.schukai.com/oss/libraries/go/utilities/pathfinder v0.3.1 h1:oyElaqEiyr2Xg
gitlab.schukai.com/oss/libraries/go/utilities/pathfinder v0.3.1/go.mod h1:UvdD4NAf3gLKYafabJD7e9ZCOetzM9JZ9y4GkZukPVU= gitlab.schukai.com/oss/libraries/go/utilities/pathfinder v0.3.1/go.mod h1:UvdD4NAf3gLKYafabJD7e9ZCOetzM9JZ9y4GkZukPVU=
gitlab.schukai.com/oss/libraries/go/utilities/pathfinder v0.4.0 h1:eAEsq3lsHwMe5Zz71vNab5csPtp8S+i5zFPmNnDPFDg= gitlab.schukai.com/oss/libraries/go/utilities/pathfinder v0.4.0 h1:eAEsq3lsHwMe5Zz71vNab5csPtp8S+i5zFPmNnDPFDg=
gitlab.schukai.com/oss/libraries/go/utilities/pathfinder v0.4.0/go.mod h1:UvdD4NAf3gLKYafabJD7e9ZCOetzM9JZ9y4GkZukPVU= gitlab.schukai.com/oss/libraries/go/utilities/pathfinder v0.4.0/go.mod h1:UvdD4NAf3gLKYafabJD7e9ZCOetzM9JZ9y4GkZukPVU=
gitlab.schukai.com/oss/libraries/go/utilities/pathfinder v0.8.1 h1:A3KvLvu4rV3OstgEn6xHulhQaXawVvzFzbafYHWHUfs=
gitlab.schukai.com/oss/libraries/go/utilities/pathfinder v0.8.1/go.mod h1:MqCBFv7DXKoBE2rZDc51LGvl2QI7Kz0D+XkQ0izj+ws=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
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