Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
HTTP Negotiation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Go
Network
HTTP Negotiation
Commits
90c3e803
Verified
Commit
90c3e803
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: add new devenv.nix
#1
parent
b348c560
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+7
-2
7 additions, 2 deletions
.gitlab-ci.yml
Taskfile.yml
+25
-14
25 additions, 14 deletions
Taskfile.yml
devenv.nix
+620
-131
620 additions, 131 deletions
devenv.nix
with
652 additions
and
147 deletions
.gitlab-ci.yml
+
7
−
2
View file @
90c3e803
# 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
...
...
This diff is collapsed.
Click to expand it.
Taskfile.yml
+
25
−
14
View file @
90c3e803
# 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'
...
...
@@ -5,13 +12,16 @@ version: '3'
tasks
:
default
:
cmds
:
-
task --list
-all
-
task --list
silent
:
true
test
:
desc
:
Execute unit tests in Go.
cmds
:
cmds
:
-
echo "Execute unit tests in Go."
-
go test -cover -v ./...
-
go test -bench .
-
go test -race .
test-fuzz
:
desc
:
Conduct fuzzing tests.#
...
...
@@ -23,8 +33,15 @@ tasks:
desc
:
Attach license headers to Go files.
cmds
:
-
echo "Attach license headers to Go files."
-
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.
...
...
@@ -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)
silent
:
true
build
:
desc
:
Com
pile the application,
commit
:
desc
:
Com
mit 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.
Click to expand it.
devenv.nix
+
620
−
131
View file @
90c3e803
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment