Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beaver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orus-io
beaver
Commits
3a41220184cc
Commit
3a41220184cc
authored
2 years ago
by
Florent Aide
Browse files
Options
Downloads
Patches
Plain Diff
CI: try to force the GOPATH in our task command
parent
bd9255c9ec9c
No related branches found
No related tags found
No related merge requests found
Pipeline
#36326
passed
2 years ago
Stage: test
Stage: lint
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+37
-9
37 additions, 9 deletions
.gitlab-ci.yml
with
37 additions
and
9 deletions
.gitlab-ci.yml
+
37
−
9
View file @
3a412201
---
stages
:
...
...
@@ -1,7 +2,9 @@
stages
:
-
test
-
test
-
lint
-
build
unit_tests
:
stage
:
test
image
:
quay.orus.io/cc/golang:1.17.6
cache
:
...
...
@@ -3,6 +6,7 @@
unit_tests
:
stage
:
test
image
:
quay.orus.io/cc/golang:1.17.6
cache
:
key
:
tooling
paths
:
...
...
@@ -8,8 +12,28 @@
paths
:
-
.gopath/pkg/mod
-
.gopath/golangci-cache
-
.cache/gocache
-
tools/bin
-
.gopath/pkg/mod
-
.gopath/golangci-cache
-
.cache/gocache
-
tools/bin
script
:
-
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b tools/bin
-
tools/bin/task test
lint
:
stage
:
lint
image
:
quay.orus.io/cc/golang:1.17.6
cache
:
key
:
tooling
paths
:
-
.gopath/pkg/mod
-
.gopath/golangci-cache
-
.cache/gocache
-
tools/bin
script
:
-
GOLANGCI_LINT_ARGS="-j 4" GOLANGCI_LINT_CACHE=$CI_PROJECT_DIR/.gopath/golangci-cache tools/bin/task lint
build
:
stage
:
build
image
:
quay.orus.io/cc/golang:1.17.6
artifacts
:
paths
:
-
build
...
...
@@ -13,5 +37,11 @@
artifacts
:
paths
:
-
build
-
docs/_build
cache
:
key
:
tooling
paths
:
-
.gopath/pkg/mod
-
.gopath/golangci-cache
-
.cache/gocache
-
tools/bin
script
:
...
...
@@ -17,4 +47,2 @@
script
:
-
GO111MODULE=on go get -d -u github.com/go-task/task/v3/cmd/task
-
GOLANGCI_LINT_ARGS="-j 4" GOLANGCI_LINT_CACHE=$CI_PROJECT_DIR/.gopath/golangci-cache task lint
-
task test
-
tools/bin/task build
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