.gitlab-ci.yml 2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
# Quick syntax check:
# python -c 'import sys, yaml; yaml.dump (yaml.load (sys.stdin), sys.stdout)' <.gitlab-ci.yml

# If things don't seem to work, this can help:
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/ci/lint

stages:
  - test
  - deploy

.fedora_install: &fedora_install
  before_script:
    - NM_INSTALL="dnf install -y" ./contrib/fedora/REQUIRED_PACKAGES
14 15
    - dnf install -y glibc-langpack-pl
    - locale -a
16
    - contrib/scripts/nm-ci-patch-gtkdoc.sh || true
17 18 19 20 21 22 23 24 25 26 27 28 29

checkpatch:
  image: fedora:28
  stage: test
  script:
    - dnf install -y git
    - contrib/scripts/checkpatch-feature-branch.sh 2>&1 | tee checkpatch-out.txt
  allow_failure: true
  artifacts:
    when: on_failure
    paths:
      - checkpatch-out.txt

30
f28_build_autotools:
31 32 33 34
  <<: *fedora_install
  image: fedora:28
  stage: test
  script:
35
    - CI=gitlab BUILD_TYPE=autotools contrib/scripts/nm-ci-run.sh
36 37 38 39 40 41
    - mv build/INST/share/gtk-doc/html docs-html
  artifacts:
    expire_in: 1 day
    paths:
      - docs-html

42 43 44 45 46 47 48
f28_build_meson:
  <<: *fedora_install
  image: fedora:28
  stage: test
  script:
    - CI=gitlab BUILD_TYPE=meson contrib/scripts/nm-ci-run.sh

49 50 51 52 53 54 55 56 57 58 59 60 61 62
f28_rpm_autotools_dbg:
  <<: *fedora_install
  image: fedora:28
  stage: test
  script:
    - ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test

f28_rpm_meson_dbg:
  <<: *fedora_install
  image: fedora:28
  stage: test
  script:
    - ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w meson -w test

63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
f_latest_build_autotools:
  <<: *fedora_install
  image: fedora:latest
  stage: test
  script:
    - CI=gitlab BUILD_TYPE=autotools contrib/scripts/nm-ci-run.sh

f_rawhide_build_autotools:
  <<: *fedora_install
  image: fedora:rawhide
  stage: test
  script:
    - CI=gitlab BUILD_TYPE=autotools contrib/scripts/nm-ci-run.sh
  allow_failure: true

78 79 80
pages:
  stage: deploy
  dependencies:
81
    - f28_build_autotools
82 83 84 85 86 87 88 89
  script:
    - mv docs-html public
  artifacts:
    expire_in: 20 days
    paths:
      - public
  only:
    - master