.gitlab-ci.yml 741 Bytes
Newer Older
ale's avatar
ale committed
1 2 3 4 5 6 7 8 9 10

stages:
  - test
  - build_src
  - build_pkg
  - upload

test:
  stage: test
  image: "ai/test:go"
ale's avatar
ale committed
11 12 13 14 15 16
  script:
    - "go get -u github.com/jstemmer/go-junit-report"
    - "go-test-runner ./... 2>&1 | go-junit-report > junit.xml"
  artifacts:
    reports:
      junit: junit.xml
ale's avatar
ale committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

build:src:
  stage: build_src
  image: "ai/build:stretch"
  script: "build-dsc"
  artifacts:
    paths:
      - build-deb/
  only:
    - master

build:pkg:
  stage: build_pkg
  image: "ai/build:stretch"
  script: "build-deb"
  dependencies:
    - build:src
  artifacts:
    paths:
      - output-deb/
  only:
    - master

upload:pkg:
  stage: upload
  image: "ai/pkg:base"
ale's avatar
ale committed
43
  script: "upload-packages -r ai3"
ale's avatar
ale committed
44 45 46 47 48
  dependencies:
    - build:pkg
  only:
    - master