github.com/core-coin/go-core/v2@v2.1.9/.gitlab/ci/build.gitlab-ci.yml (about) 1 image: golang:1.14 2 3 cache: 4 paths: 5 - /apt-cache 6 - /go/src/github.com 7 - /go/src/golang.org 8 - /go/src/google.golang.org 9 - /go/src/gopkg.in 10 11 stages: 12 - test 13 - build 14 15 before_script: 16 - mkdir -p /go/src/github.com/core-coin /go/src/_/builds 17 - cp -r $CI_PROJECT_DIR /go/src/github.com/core-coin/go-core 18 - ln -s /go/src/github.com/core-coin /go/src/_/builds/go-core 19 - make dep 20 21 unit_tests: 22 stage: test 23 script: 24 - go run build/ci.go test 25 26 lint_code: 27 stage: test 28 script: 29 - go run build/ci.go lint 30 31 build: 32 stage: build 33 script: 34 - go run build/ci.go install