mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(.gitlab-ci): adapt for new conftest
No longer do we need to create any database in .gitlab-ci. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
fb92fb509b
commit
a5c0c47e5b
1 changed files with 6 additions and 6 deletions
|
@ -22,14 +22,11 @@ test:
|
||||||
- (cd '/usr' && /usr/bin/mysqld_safe --datadir='/var/lib/mysql') &
|
- (cd '/usr' && /usr/bin/mysqld_safe --datadir='/var/lib/mysql') &
|
||||||
- 'until : > /dev/tcp/127.0.0.1/3306; do sleep 1s; done'
|
- 'until : > /dev/tcp/127.0.0.1/3306; do sleep 1s; done'
|
||||||
- ./docker/test-mysql-entrypoint.sh # Create mysql AUR_CONFIG.
|
- ./docker/test-mysql-entrypoint.sh # Create mysql AUR_CONFIG.
|
||||||
- ./docker/test-sqlite-entrypoint.sh # Create sqlite AUR_CONFIG.
|
|
||||||
- make -C po all install
|
- make -C po all install
|
||||||
- python -m aurweb.initdb # Initialize MySQL tables.
|
|
||||||
- AUR_CONFIG=conf/config.sqlite python -m aurweb.initdb
|
|
||||||
- make -C test clean
|
- make -C test clean
|
||||||
script:
|
script:
|
||||||
- make -C test sh pytest # sharness tests use sqlite & pytest w/ mysql.
|
- make -C test sh # sharness tests use sqlite.
|
||||||
- AUR_CONFIG=conf/config.sqlite make -C test pytest
|
- pytest # Run pytest suites.
|
||||||
- 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 aurweb # Assert no flake8 violations in aurweb.
|
||||||
- flake8 --count test # Assert no flake8 violations in test.
|
- flake8 --count test # Assert no flake8 violations in test.
|
||||||
|
@ -65,8 +62,11 @@ deploy:
|
||||||
# Set secure login config for aurweb.
|
# Set secure login config for aurweb.
|
||||||
- sed -ri "s/^(disable_http_login).*$/\1 = 1/" conf/config.dev
|
- sed -ri "s/^(disable_http_login).*$/\1 = 1/" conf/config.dev
|
||||||
- docker-compose build
|
- docker-compose build
|
||||||
- docker system prune -f
|
|
||||||
- docker-compose -f docker-compose.yml -f docker-compose.aur-dev.yml up -d
|
- docker-compose -f docker-compose.yml -f docker-compose.aur-dev.yml up -d
|
||||||
|
- docker image prune -f
|
||||||
|
- docker container prune -f
|
||||||
|
- docker volume prune -f
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
name: development
|
name: development
|
||||||
url: https://aur-dev.archlinux.org
|
url: https://aur-dev.archlinux.org
|
||||||
|
|
Loading…
Add table
Reference in a new issue