Skip to content

Commit

Permalink
Fix scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <[email protected]>
  • Loading branch information
AenBleidd committed Feb 19, 2025
1 parent b1cc345 commit 43d8b56
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
build:
environment:
php: 8.3.6
nodes:
analysis:
dependencies:
Expand Down Expand Up @@ -27,6 +29,7 @@ filter:
- '*.min.js'
- 'drupal/sites/default/modules/boinc/*'
- 'drupal/sites/default/themes/boinc/*'
- 'tests/server-test/*'
dependency_paths:
- 'html/inc/htmLawed.php'
- 'drupal/sites/all/libraries/*'
Expand Down
4 changes: 2 additions & 2 deletions tests/integration_test/executeTestSuite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ isPathSubpath() {
}

# check working directory because the script needs to be called like: ./integration_test/installTestSuite.sh
if [ ! -d "integration_test" ]; then
if [ ! -d "tests/integration_test" ]; then
echo "start this script in the source root directory"
exit 1
fi

ROOTDIR=$(pwd)
PREFIX=$(realpath -s $ROOTDIR/../bst)
PREFIX=$ROOTDIR/tests/server-test
test_dir=""
while [[ $# -gt 0 ]]; do
key="$1"
Expand Down
10 changes: 5 additions & 5 deletions tests/integration_test/installTestSuite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ isPathSubpath() {
}

# check working directory because the script needs to be called like: ./integration_test/installTestSuite.sh
if [ ! -d "integration_test" ]; then
if [ ! -d "tests/integration_test" ]; then
echo "start this script in the source root directory"
exit 1
fi

ROOTDIR=$(pwd)
PREFIX=$(realpath -s $ROOTDIR/tests/server-test)
PREFIX=$ROOTDIR/tests/server-test
test_dir=""
while [[ $# -gt 0 ]]; do
key="$1"
Expand Down Expand Up @@ -94,11 +94,11 @@ if [ "x$test_dir" != "x" ]; then
fi

cd "${PREFIX}/tests" || exit 1
composer require phpunit/phpunit
composer require --dev phpunit/phpunit
if [ $? -ne 0 ]; then exit 1; fi
composer require guzzlehttp/guzzle
composer require --dev guzzlehttp/guzzle
if [ $? -ne 0 ]; then exit 1; fi
composer update
composer update --dev
if [ $? -ne 0 ]; then exit 1; fi
cd .. || exit 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
file: path="{{base_dir}}/boinc-server-docker" state=absent

- name: "Clone boinc-server-docker to {{base_dir}}"
command: git clone https://github.com/marius311/boinc-server-docker.git chdir="{{base_dir}}"

- name: "Use 28df02f75c07650c53a7c5f0a389118f48698fda commit of boinc-server-docker"
command: git checkout 28df02f75c07650c53a7c5f0a389118f48698fda chdir="{{base_dir}}/boinc-server-docker"
command: git clone https://github.com/BOINC/boinc-server-docker.git chdir="{{base_dir}}"

- name: Init some submodules
command: git submodule init images/makeproject/boinc2docker images/makeproject/html/inc/phpmailer chdir="{{base_dir}}/boinc-server-docker"
Expand Down
6 changes: 3 additions & 3 deletions tests/server-test/tests/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require": {
"phpunit/phpunit": "^7.2",
"guzzlehttp/guzzle": "^6.3"
"require-dev": {
"phpunit/phpunit": "*",
"guzzlehttp/guzzle": "*"
},

"scripts": {
Expand Down

0 comments on commit 43d8b56

Please sign in to comment.