This repository has been archived on 2024-04-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
elektron/.gitlab-ci.yml
Pradyumna Kaushik bac60e872a Unit testing for def/ module.
Added unit tests to test code in def/ module.
2019-10-12 06:48:45 +00:00

27 lines
585 B
YAML

image: golang:1.12
cache:
paths:
- /go/pkg/mod/github.com
- /go/pkg/mod/golang.org
- /go/pkg/mod/google.golang.org
before_script:
- export GOPATH="/go"
- mkdir -p $GOPATH/pkg/mod github.com $GOPATH/pkg/mod/golang.org $GOPATH/pkg/mod/google.golang.org
- cp -r $CI_PROJECT_DIR /elektron
- cd /elektron
- go mod download
unit_tests:
script:
- go test ./...
code_coverage:
script:
- go test --cover ./...
build:
script:
- go build -mod vendor -o elektron-from-vendor ## Testing build from vendored dependencies.
- go build -v -o elektron