File: .gitlab-ci.yml

package info (click to toggle)
mtail 3.0.0~rc24.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,944 kB
  • sloc: yacc: 530; makefile: 181; sh: 141; lisp: 77; awk: 17
file content (28 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (2)
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
image: golang:1.8

stages:
  - test
  - build

before_script:
  - mkdir ${CI_PROJECT_DIR}/build
  - mkdir -p ${GOPATH}/src/github.com/google/
  - ln -s $(pwd) ${GOPATH}/src/github.com/google/mtail
  - cd ${GOPATH}/src/github.com/google/mtail

test:
  stage: test
  allow_failure: true
  script:
    - make install_deps
    - make test

build:
  stage: build
  script:
    - PREFIX=${CI_PROJECT_DIR}/build make install
  artifacts:
    expire_in: 1 week
    when: on_success
    paths:
      - build