Merge branch 'master' into live

This commit is contained in:
Kevin Morris 2022-01-24 11:48:17 -08:00
commit 3576030448
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 15 additions and 11 deletions

View file

@ -12,6 +12,20 @@ variables:
CURRENT_DIR: "$(pwd)" CURRENT_DIR: "$(pwd)"
LOG_CONFIG: logging.test.conf LOG_CONFIG: logging.test.conf
lint:
variables:
# Space-separated list of directories that should be linted.
REQUIRES_LINT: "aurweb test migrations"
stage: .pre
before_script:
- pacman -Sy --noconfirm --noprogressbar --cachedir .pkg-cache
archlinux-keyring
- pacman -Syu --noconfirm --noprogressbar --cachedir .pkg-cache
python python-isort flake8
script:
- bash -c 'flake8 --count $(echo "$REQUIRES_LINT" | xargs); exit $?'
- bash -c 'isort --check-only $(echo "$REQUIRES_LINT" | xargs); exit $?'
test: test:
stage: test stage: test
tags: tags:
@ -36,12 +50,6 @@ test:
# Run pytest. # Run pytest.
- pytest - pytest
- make -C test coverage # Produce coverage reports. - make -C test coverage # Produce coverage reports.
- flake8 --count aurweb # Assert no flake8 violations in aurweb.
- flake8 --count test # Assert no flake8 violations in test.
- flake8 --count migrations # Assert no flake8 violations in migrations.
- isort --check-only aurweb # Assert no isort violations in aurweb.
- isort --check-only test # Assert no flake8 violations in test.
- isort --check-only migrations # Assert no flake8 violations in migrations.
coverage: '/TOTAL.*\s+(\d+\%)/' coverage: '/TOTAL.*\s+(\d+\%)/'
artifacts: artifacts:
reports: reports:

View file

@ -5,11 +5,7 @@
set -eou pipefail set -eou pipefail
# Update and rollout archlinux-keyring keys. # Update and rollout archlinux-keyring keys.
pacman-key --init pacman -Sy --noconfirm --noprogressbar --cachedir .pkg-cache archlinux-keyring
pacman-key --updatedb
pacman-key --populate
pacman -Sy --noconfirm --noprogressbar archlinux-keyring
# Install other OS dependencies. # Install other OS dependencies.
pacman -Syu --noconfirm --noprogressbar \ pacman -Syu --noconfirm --noprogressbar \