fix(gitlab-ci): prepare conf/config for setup

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-27 23:34:05 -08:00
parent dbeebd3b01
commit 3a65e33abe
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -9,6 +9,7 @@ variables:
AUR_CONFIG: conf/config # Default MySQL config setup in before_script. AUR_CONFIG: conf/config # Default MySQL config setup in before_script.
DB_HOST: localhost DB_HOST: localhost
TEST_RECURSION_LIMIT: 10000 TEST_RECURSION_LIMIT: 10000
CURRENT_DIR: "$(pwd)"
test: test:
stage: test stage: test
@ -22,6 +23,8 @@ test:
- ./docker/mariadb-entrypoint.sh - ./docker/mariadb-entrypoint.sh
- (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'
- cp -v conf/config.dev conf/config
- sed -i "s;YOUR_AUR_ROOT;$(pwd);g" conf/config
- ./docker/test-mysql-entrypoint.sh # Create mysql AUR_CONFIG. - ./docker/test-mysql-entrypoint.sh # Create mysql AUR_CONFIG.
- make -C po all install - make -C po all install
- make -C test clean - make -C test clean