use absolute path

parent d6570f25
Pipeline #8671 passed with stages
in 3 minutes and 5 seconds
...@@ -4,7 +4,6 @@ include: ...@@ -4,7 +4,6 @@ include:
variables: variables:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
PROJECT_PATH: "gitlab.switch.ch/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}"
default: default:
image: golang:1.14 image: golang:1.14
...@@ -15,8 +14,8 @@ stages: ...@@ -15,8 +14,8 @@ stages:
.test_setup: &test_setup .test_setup: &test_setup
- mkdir -p /go/src/gitlab.switch.ch/${CI_PROJECT_NAMESPACE} - mkdir -p /go/src/gitlab.switch.ch/${CI_PROJECT_NAMESPACE}
- ln -s $CI_PROJECT_DIR /go/src/${PROJECT_PATH} - ln -s $CI_PROJECT_DIR /go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server
- cd /go/src/${PROJECT_PATH} - cd /go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server
.test:lint: .test:lint:
stage: test stage: test
...@@ -62,54 +61,54 @@ stages: ...@@ -62,54 +61,54 @@ stages:
server:test:lint: server:test:lint:
extends: .test:lint extends: .test:lint
variables: variables:
PKG_PATH: "${PROJECT_PATH}/cmd/server" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server"
server:test:unit: server:test:unit:
extends: .test:unit extends: .test:unit
variables: variables:
PKG_PATH: "${PROJECT_PATH}/cmd/server" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server"
server:test:race: server:test:race:
extends: .test:race extends: .test:race
variables: variables:
PKG_PATH: "${PROJECT_PATH}/cmd/server" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server"
server:test:build: server:test:build:
extends: .test:build extends: .test:build
variables: variables:
PKG_PATH: "${PROJECT_PATH}/cmd/server" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server"
tokenservice:test:lint: tokenservice:test:lint:
extends: .test:lint extends: .test:lint
variables: variables:
PKG_PATH: "${PROJECT_PATH}/cmd/tokenService" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/tokenService"
tokenservice:test:unit: tokenservice:test:unit:
extends: .test:unit extends: .test:unit
variables: variables:
PKG_PATH: "${PROJECT_PATH}/cmd/tokenService" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/tokenService"
tokenservice:test:race: tokenservice:test:race:
extends: .test:race extends: .test:race
variables: variables:
PKG_PATH: "${PROJECT_PATH}/cmd/tokenService" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/tokenService"
tokenservice:test:build: tokenservice:test:build:
extends: .test:build extends: .test:build
variables: variables:
PKG_PATH: "${PROJECT_PATH}/cmd/tokenService" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/tokenService"
memostream:test:lint: memostream:test:lint:
extends: .test:lint extends: .test:lint
variables: variables:
PKG_PATH: "${PROJECT_PATH}/pkg/memostream" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/pkg/memostream"
memostream:test:unit: memostream:test:unit:
extends: .test:unit extends: .test:unit
variables: variables:
PKG_PATH: "${PROJECT_PATH}/pkg/memostream" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/pkg/memostream"
memostream:test:race: memostream:test:race:
extends: .test:race extends: .test:race
variables: variables:
PKG_PATH: "${PROJECT_PATH}/pkg/memostream" PKG_PATH: "gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/pkg/memostream"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment