.gitlab-ci.yml 567 Bytes
Newer Older
1 2 3
image: golang:1.9
variables:
  SRC_DIR: "/go/src/git.feneas.org/ganggo"
Ghost User's avatar
Ghost User committed
4 5 6 7 8
  BUILD_DIR: "/builds/ganggo/federation"
before_script:
- mkdir -p $SRC_DIR
- cp -r ${BUILD_DIR} ${SRC_DIR}/federation
- cd ${SRC_DIR}/federation
zauberstuhl's avatar
zauberstuhl committed
9 10
- go get -u github.com/golang/dep/cmd/dep
- dep ensure
11 12 13
run unit tests:
  script:
  - go test -v -race -covermode=atomic
Ghost User's avatar
Ghost User committed
14 15 16 17 18
  - cat gotest.log
sast:
  image: registry.gitlab.com/gitlab-org/security-products/analyzers/gosec:11-3-stable
  allow_failure: true
  script:
zauberstuhl's avatar
zauberstuhl committed
19
    - /analyzer run --target-dir=$(pwd)
Ghost User's avatar
Ghost User committed
20 21
  artifacts:
    paths: [gl-sast-report.json]