-
Notifications
You must be signed in to change notification settings - Fork 5
How to set up test
Arya Permana edited this page Jun 27, 2024
·
14 revisions
https://github.com/inikoo/aiku.git
sudo apt upgradesudo apt install software-properties-commonsudo add-apt-repository ppa:ondrej/phpsudo apt updatesudo apt install php8.2php -vsudo 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 unzipcd ~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 updatesudo apt install postgresql postgresql-contribsudo 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.listsudo apt updatesudo 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 postgresand enter - type
psqland enter
CREATE USER user_name WITH PASSWORD 'password';create database aiku;ALTER DATABASE aiku OWNER TO user_name;\c aikuCREATE SCHEMA central;ALTER SCHEMA central OWNER TO user_name;create database aiku_test;ALTER DATABASE aiku_test OWNER TO user_name;\c aiku_testCREATE 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 aikucomposer installsudo apt install npmnpm 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 aikunpm run build./generate_testing_db_dumps.shvendor/bin/pest --exclude-group=aurora-fetch