Summary Files Commits Branches @commit @diff @stats
path: root / .gitlab-ci.yml
blob: 6753a20d16ca533e6cbbc14fb43386c596601afc (plain) (blame)
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
image: archlinux/base:latest

before_script:
  - pacman -Syu --noconfirm make clang

stages:
  - lint
  - test
  - analysis

test:
  stage: test
  script:
  - pacman -Syu --noconfirm webkit2gtk pkg-config gettext gcc
  - make CC=gcc test
  - make clean
  - make CC=clang test
  - make install

format:
  stage: lint
  script:
  - pacman -Syu --noconfirm git
  - make format
  - git diff --exit-code

scan-build:
  stage: analysis
  script:
  - pacman -Syu --noconfirm webkit2gtk pkg-config gettext gcc
  - scan-build --use-cc=gcc -o scan-build-gcc make
  - make clean
  - scan-build --use-cc=clang -o scan-build-clang make
  artifacts:
    paths:
    - scan-build-gcc/*
    - scan-build-clang/*