~hokiegeek/life

ref: c41a449353d445a06ec7334b540afb793d577cd8 life/.gitlab-ci.yml -rw-r--r-- 505 bytes View raw
c41a4493HokieGeek Refactored to host on sr.ht and converted to a mod 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
image: golang:1.12-alpine

stages:
    - build
    - test

variables:
    WORKDIR: /go/src/gitlab.com/pond-life/life

cache:
  paths:
    - .

.prep-go-build: &prep-go-build
  before_script:
    - mkdir -p /go/src/gitlab.com/pond-life/life
    - cp -r . /go/src/gitlab.com/pond-life/life
    - apk add --update git
    - go get -d -v ./...

build:
  <<: *prep-go-build
  stage: build
  script:
    - go build -v ./...

unit-test:
  <<: *prep-go-build
  stage: test
  script:
    - go test -v -cover ./...