-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathrun-tests.sh
More file actions
executable file
·21 lines (16 loc) · 845 Bytes
/
Copy pathrun-tests.sh
File metadata and controls
executable file
·21 lines (16 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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" "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 our project stubs (includes audit plugin)
cp -r ./stubs/project/* ./config/project/
echo "==> Running test suite..."
./vendor/bin/pest