File: .gitlab-ci.yml

package info (click to toggle)
autodeb 0.20.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,304 kB
  • sloc: sh: 73; makefile: 62
file content (32 lines) | stat: -rw-r--r-- 715 bytes parent folder | download
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
32
image: golang:1.10-stretch

variables:
    GIT_STRATEGY: clone

before_script:
    - pwd
    - mkdir -p $GOPATH/src/salsa.debian.org/$CI_PROJECT_NAMESPACE
    - cp -r $CI_PROJECT_DIR $GOPATH/src/salsa.debian.org/$CI_PROJECT_PATH
    - cd $GOPATH/src/salsa.debian.org/$CI_PROJECT_PATH
    - pwd

test:
   script:
        - make get-deps
        - make test

pages:
    stage: deploy
    script:
        - make get-deps
        - apt-get update
        - apt-get install -y graphviz
        - mkdir public
        - make dependency-graphs
        - mv dependency-graph-*.svg public/
        - mv public /builds/autodeb-team/autodeb/public
    artifacts:
        paths:
            - public
    only:
        - master