-
Notifications
You must be signed in to change notification settings - Fork 1
How to set up test
Arya Permana edited this page Jun 27, 2024
·
14 revisions
https://github.com/inikoo/aiku.git
sudo apt upgrade
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.2
php -v
sudo apt install php-mysql redis-server php-curl php-mbstring php-xml php-pgsql php-soap php-gd php-intl php-zip php-redis
sudo apt install php-cli unzip
cd ~
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
- HASH=
curl -sS https://composer.github.io/installer.sig
php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo service postgresql start
sudo service postgresql start
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-8.x.list
sudo apt update
sudo apt install elasticsearch
sudo nano /etc/elasticsearch/elasticsearch.yml
find network.host:
and set the value to localhost
Set everything that has a true
value into false
sudo service elasticsearch start
curl -XGET http://127.0.0.1:9200
- type
su postgres
and enter - type
psql
and enter
CREATE USER user_name WITH PASSWORD 'password';
create database aiku;
ALTER DATABASE aiku OWNER TO user_name;
\c aiku
CREATE SCHEMA central;
ALTER SCHEMA central OWNER TO user_name;
create database aiku_test;
ALTER DATABASE aiku_test OWNER TO user_name;
\c aiku_test
CREATE SCHEMA central;
ALTER SCHEMA central OWNER TO user_name;
ALTER USER user_name WITH SUPERUSER
type \q
and enter
nano .pgpass
-
*:*:*:*:password
<= type inside .pgpass chmod 0600 ~/.pgpass
cd aiku
composer install
sudo apt install npm
npm install
all these requirements are needed to be able to run the test, please kindly ask us for these files π
- .env
- .env.testing
- private folder
cd aiku
npm run build
./generate_testing_db_dumps.sh
vendor/bin/pest --exclude-group=aurora-fetch