.gitlab-ci.yml 1.11 KB
Newer Older
Filipe Laíns's avatar
Filipe Laíns committed
1
2
image: archlinux

Filipe Laíns's avatar
Filipe Laíns committed
3
4
5
6
7
8
cache:
  key: system-v1
  paths:
    # For some reason Gitlab CI only supports storing cache/artifacts in a path relative to the build directory
    - .pkg-cache

Filipe Laíns's avatar
Filipe Laíns committed
9
before_script:
Filipe Laíns's avatar
Filipe Laíns committed
10
  - pacman -Syu --noconfirm --noprogressbar --needed --cachedir .pkg-cache
Filipe Laíns's avatar
Filipe Laíns committed
11
12
13
           base-devel git gpgme protobuf pyalpm python-mysql-connector
           python-pygit2 python-srcinfo python-bleach python-markdown
           python-sqlalchemy python-alembic python-pytest python-werkzeug
Kevin Morris's avatar
Kevin Morris committed
14
           python-pytest-tap python-fastapi hypercorn nginx python-authlib
Kevin Morris's avatar
Kevin Morris committed
15
16
17
           python-itsdangerous python-httpx python-jinja python-pytest-cov
           python-requests python-aiofiles python-python-multipart
           python-pytest-asyncio python-coverage
Filipe Laíns's avatar
Filipe Laíns committed
18
19
20

test:
  script:
21
22
    - python setup.py install
    - sed -r "s;YOUR_AUR_ROOT;$(pwd);g" conf/config.dev > conf/config
23
    - AUR_CONFIG=conf/config make -C po all install
24
    - AUR_CONFIG=conf/config python -m aurweb.initdb
Filipe Laíns's avatar
Filipe Laíns committed
25
    - make -C test
Kevin Morris's avatar
Kevin Morris committed
26
    - coverage report --include='aurweb/*'
Kristian Klausen's avatar
Kristian Klausen committed
27
28
29

include:
  - template: Code-Quality.gitlab-ci.yml
Kristian Klausen's avatar
SAST    
Kristian Klausen committed
30
31
32

include:
  - template: Security/SAST.gitlab-ci.yml