-
Notifications
You must be signed in to change notification settings - Fork 15
/
.gitlab-ci.yml
58 lines (47 loc) · 1.04 KB
/
.gitlab-ci.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
image: "archlinux:latest"
before_script:
- >
pacman -Syu --needed --noconfirm
make base-devel python python-pkgconfig
python-pytest python-pytest-cov python-pytest-pacman
python-sphinx python-pylint twine python-tomli
stages:
- lint
- test
- doc
lint:
script:
- make lint
except:
- schedules
test:
script:
- make build
- PYTEST_OPTIONS="--junitxml=report.xml --cov-report xml" make test
artifacts:
when: always
reports:
junit: report.xml
cobertura: coverage.xml
except:
- schedules
next:
only:
- schedules
script:
- pacman -Syu --needed --noconfirm meson git
- git clone https://gitlab.archlinux.org/pacman/pacman.git
- cd pacman && mkdir build && cd build && meson .. && ninja
- cd $CI_PROJECT_DIR && PKG_CONFIG_PATH=./pacman/build/meson-uninstalled make build
pypi:
only:
- tags
- secure
script:
- python setup.py sdist
- twine upload dist/*
include:
- template: Security/SAST.gitlab-ci.yml
sast:
before_script:
- ''