-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun-tests.sh
More file actions
executable file
·23 lines (18 loc) · 922 Bytes
/
run-tests.sh
File metadata and controls
executable file
·23 lines (18 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -e
echo "==> Installing dependencies..."
composer config --no-plugins allow-plugins.yiisoft/yii2-composer true
composer config --no-plugins allow-plugins.craftcms/plugin-installer true
composer config --no-plugins allow-plugins.pestphp/pest-plugin true
composer require "craftcms/cms:^5.5" "craftcms/commerce:^5.0" "markhuot/craft-pest-core:^3.0" --prefer-dist --no-progress --no-interaction --with-all-dependencies
echo "==> Setting up config files..."
mkdir -p ./storage ./config/project ./tests/templates
# Copy base configs from pest-core
cp -r ./vendor/markhuot/craft-pest-core/stubs/config/app.php ./config/app.php
cp -r ./vendor/markhuot/craft-pest-core/stubs/config/general.php ./config/general.php
# Copy project stubs if they exist (plugin-specific config)
if [ -d "./stubs/project" ]; then
cp -r ./stubs/project/* ./config/project/
fi
echo "==> Running test suite..."
./vendor/bin/pest