.gitlab-ci.yml 1.82 KB
Newer Older
John Ellson's avatar
John Ellson committed
1
stages:
2 3
    - source
    - build
John Ellson's avatar
John Ellson committed
4

John Ellson's avatar
John Ellson committed
5
portable-source:
6
    stage: source
John Ellson's avatar
John Ellson committed
7
    tags:
8
        - graphviz,centos7
John Ellson's avatar
John Ellson committed
9 10 11 12 13 14 15
    script:
        - ./autogen.sh
        - make dist
    artifacts:
        when: on_success
        expire_in: 1 week
        paths:
16
            - VERSION
John Ellson's avatar
John Ellson committed
17
            - graphviz-*.tar.gz
John Ellson's avatar
John Ellson committed
18 19
    only:
        - master
20

John Ellson's avatar
John Ellson committed
21
.build_template: &rpm_build_definition
22 23
    stage: build
    script:
24
        - rm -rf /home/gitlab-runner/rpmbuild
25
        - VERSION=$( cat VERSION )
26
        - rpmbuild -ta graphviz-${VERSION}.tar.gz
27
        - ln -s /home/gitlab-runner/rpmbuild .
28 29 30 31
    artifacts:
        when: on_success
        expire_in: 1 week
        paths:
32 33
            - rpmbuild/SRPMS/graphviz*.rpm
            - rpmbuild/RPMS/*/graphviz*.rpm
34 35
    only:
        - master
John Ellson's avatar
John Ellson committed
36

John Ellson's avatar
John Ellson committed
37 38 39 40
.build_template: &deb_build_definition
    stage: build
    script:
        - VERSION=$( cat VERSION )
John Ellson's avatar
John Ellson committed
41 42
        - zcat graphviz-${VERSION}.tar.gz | tar xf -
        - (cd graphviz-${VERSION}; fakeroot make -f debian/rules binary)
John Ellson's avatar
John Ellson committed
43 44 45 46
    artifacts:
        when: on_success
        expire_in: 1 week
        paths:
47 48
            - ./*.deb
            - ./*.ddeb
John Ellson's avatar
John Ellson committed
49 50 51
    only:
        - master

John Ellson's avatar
John Ellson committed
52
centos6-build:
John Ellson's avatar
John Ellson committed
53
    <<: *rpm_build_definition
John Ellson's avatar
John Ellson committed
54 55
    tags:
        - graphviz,centos6
John Ellson's avatar
John Ellson committed
56 57

centos7-build:
John Ellson's avatar
John Ellson committed
58
    <<: *rpm_build_definition
John Ellson's avatar
John Ellson committed
59 60 61
    tags:
        - graphviz,centos7

John Ellson's avatar
John Ellson committed
62
fedora27-build:
John Ellson's avatar
John Ellson committed
63
    <<: *rpm_build_definition
John Ellson's avatar
John Ellson committed
64 65
    tags:
        - graphviz,fedora27
John Ellson's avatar
John Ellson committed
66 67

fedora28-build:
John Ellson's avatar
John Ellson committed
68
    <<: *rpm_build_definition
John Ellson's avatar
John Ellson committed
69 70 71
    tags:
        - graphviz,fedora28

John Ellson's avatar
John Ellson committed
72
fedora29-build:
John Ellson's avatar
John Ellson committed
73
    <<: *rpm_build_definition
John Ellson's avatar
John Ellson committed
74 75 76
    tags:
        - graphviz,fedora29

77 78 79 80
          #fedora30-build:
          #<<: *rpm_build_definition
          #tags:
          #- graphviz,fedora30
John Ellson's avatar
John Ellson committed
81 82 83 84 85 86 87 88 89 90

ubuntu18-04-build:
    <<: *deb_build_definition
    tags:
        - graphviz,ubuntu18-04

ubuntu18-10-build:
    <<: *deb_build_definition
    tags:
        - graphviz,ubuntu18-10