.gitlab-ci.yml 493 Bytes
Newer Older
Loïck Bonniot's avatar
Add CI  
Loïck Bonniot committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
stages:
  - test

job_tests:
  stage: test
  tags:
    - golang
    - mongo  # Require an available mongo service
    - strong # Disable this build on small runners
  services:
    - "lesterpig/mongo:latest" # Use this light version of mongo
  script: "go test -cover -v ./..."

job_lint:
  stage: test
  allow_failure: True
  tags:
    - golang
    - lint
  script:
    - "go get github.com/alecthomas/gometalinter"
    - "gometalinter --install"
    - "gometalinter -t --deadline=60s ./..."