.gitlab-ci.yml 2.5 KB
Newer Older
1 2
variables:
  MAKE: make
3
  GIT_DEPTH: 100
4

5
stages:
6
  - prebuild
7 8 9
  - cross_build


10
# Default cross build jobs that are always run
11 12
.cross_build_default_job_template: &cross_build_default_job_definition
  stage: cross_build
13 14 15 16
  script:
    - mkdir build
    - cd build
    - ../autogen.sh $CONFIGURE_OPTS || (cat config.log && exit 1)
17
    - $MAKE -j $(getconf _NPROCESSORS_ONLN)
18

19 20 21 22 23 24 25 26
# Extra cross build jobs that are only run post-merge, or
# when code is pushed to a branch with "ci-full-" name prefix
.cross_build_extra_job_template: &cross_build_extra_job_definition
  <<: *cross_build_default_job_definition
  only:
    - master
    - /^ci-full-.*$/

27

28
armv6l-debian-9:
29
  <<: *cross_build_extra_job_definition
30
  image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-armv6l:latest
31

32
mips64el-debian-9:
33
  <<: *cross_build_extra_job_definition
34
  image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-mips64el:latest
35

36
mips-debian-9:
37
  <<: *cross_build_extra_job_definition
38
  image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-mips:latest
39

40
aarch64-debian-10:
41
  <<: *cross_build_extra_job_definition
42
  image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-aarch64:latest
43

44
ppc64le-debian-10:
45
  <<: *cross_build_extra_job_definition
46
  image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-ppc64le:latest
47

48
s390x-debian-10:
49
  <<: *cross_build_default_job_definition
50
  image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-s390x:latest
51

52
armv7l-debian-sid:
53
  <<: *cross_build_default_job_definition
54
  image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-armv7l:latest
55

56
i686-debian-sid:
57
  <<: *cross_build_extra_job_definition
58
  image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-i686:latest
59

60
mipsel-debian-sid:
61
  <<: *cross_build_extra_job_definition
62
  image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-mipsel:latest
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84

# This artifact published by this job is downloaded by libvirt.org to
# be deployed to the web root:
#    https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?job=website
website:
  stage: prebuild
  script:
    - mkdir build
    - cd build
    - ../autogen.sh --prefix=$(pwd)/../vroot || (cat config.log && exit 1)
    - $MAKE -j $(getconf _NPROCESSORS_ONLN) -C docs
    - $MAKE -j $(getconf _NPROCESSORS_ONLN) -C docs install
    - cd ..
    - mv vroot/share/doc/libvirt/html/ website
  image: quay.io/libvirt/buildenv-libvirt-fedora-31:latest
  artifacts:
    expose_as: 'Website'
    name: 'website'
    when: on_success
    expire_in: 30 days
    paths:
      - website