summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 2f53a321e49bc6bc159ce030941f042c0c361ac9 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
image: fedora:latest
stages:
  - check
  - build
  - deploy

variables:
  DEPENDENCIES: python3 redhat-rpm-config gettext-devel git pygobject3
                pygobject3-devel python3-gobject python3-cairo-devel
                gtk3-devel gobject-introspection-devel tracker-devel
                which libmediaart-devel grilo-devel gnome-online-accounts-devel
                meson ninja-build

build:
  stage: build
  script:
    - dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES
    - git submodule update --init
    - meson builddir
    - ninja -C builddir

deploy:
  stage: deploy
  script:
    - dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES
    - git submodule update --init
    - meson builddir
    - ninja dist -C builddir
  only:
    - tags

pyflakes:
  stage: check
  script:
    - dnf update -y --nogpgcheck && dnf install -y --nogpgcheck python3-pyflakes
    - python3-pyflakes gnomemusic/

pep8:
  stage: check
  script:
    - dnf update -y --nogpgcheck && dnf install -y --nogpgcheck python3-pep8
    - python3-pep8 --ignore=W503,E402 --show-source --show-pep8 --exclude=mpris.py,grilo.py,query.py,player.py,window.py gnomemusic/
  allow_failure: true