Skip to content
Snippets Groups Projects
Commit 4aad77ac authored by Erick Hitter's avatar Erick Hitter
Browse files

Merge branch 'add/gitlab-ci-yml' into 'main'

Port existing CI configuration

Closes #1

See merge request !2
parents 8d1c553a d4466071
No related branches found
No related tags found
1 merge request!2Port existing CI configuration
include:
- remote: https://git-cdn.e15r.co/gitlab/ci/golang/-/raw/main/files/templates/image.yml
- remote: https://git-cdn.e15r.co/gitlab/ci/golang/-/raw/main/files/templates/variables.yml
- remote: https://git-cdn.e15r.co/gitlab/ci/golang/-/raw/main/files/templates/cache.yml
- remote: https://git-cdn.e15r.co/gitlab/ci/golang/-/raw/main/files/templates/stages.yml
- remote: https://git-cdn.e15r.co/gitlab/ci/golang/-/raw/main/files/templates/before-script.yml
- remote: https://git-cdn.e15r.co/gitlab/ci/golang/-/raw/main/files/templates/matrix.yml
before_script:
- curl -o "${CI_PROJECT_DIR}/Makefile" https://git-cdn.e15r.co/gitlab/ci/golang/-/raw/main/files/Makefile
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- cp -R $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
- cp config-sample.json config.json
- export CC=clang
- make dep
cache:
paths:
- /apt-cache
- $GOPATH/src/github.com
- $GOPATH/src/golang.org
- $GOPATH/src/google.golang.org
- $GOPATH/src/gopkg.in
image: containers.ethitter.com:443/docker/images/golang:latest
unit_tests:
stage: test
script:
- make test
race_detector:
stage: test
script:
- make race
memory_sanitizer:
stage: test
script:
- make msan
code_coverage:
stage: test
script:
- make coverage
code_coverage_report:
stage: test
script:
- make coverhtml
only:
- master
lint_code:
stage: test
script:
- make lint
build:
stage: build
script:
- make
artifacts:
paths:
- dyndnsd-client/
stages:
- test
- build
variables:
REPO_NAME: "${CI_SERVER_HOST}/${CI_PROJECT_NAMESPACE}/$(CI_PROJECT_NAME)"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment