Skip to content

Commit e422ff8

Browse files
committed
Fix scripts
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
1 parent b1cc345 commit e422ff8

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.scrutinizer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ build:
1313
override:
1414
- command: phpcs-run
1515
use_website_config: true
16+
- command: phpunit
1617
- php-scrutinizer-run
1718
- js-scrutinizer-run
1819
filter:
@@ -27,6 +28,7 @@ filter:
2728
- '*.min.js'
2829
- 'drupal/sites/default/modules/boinc/*'
2930
- 'drupal/sites/default/themes/boinc/*'
31+
- 'tests/server-test/*'
3032
dependency_paths:
3133
- 'html/inc/htmLawed.php'
3234
- 'drupal/sites/all/libraries/*'

tests/integration_test/executeTestSuite.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ isPathSubpath() {
5656
}
5757

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

6464
ROOTDIR=$(pwd)
65-
PREFIX=$(realpath -s $ROOTDIR/../bst)
65+
PREFIX=$(realpath -s $ROOTDIR/tests/server-test)
6666
test_dir=""
6767
while [[ $# -gt 0 ]]; do
6868
key="$1"

tests/integration_test/installTestSuite.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ isPathSubpath() {
5757
}
5858

5959
# check working directory because the script needs to be called like: ./integration_test/installTestSuite.sh
60-
if [ ! -d "integration_test" ]; then
60+
if [ ! -d "tests/integration_test" ]; then
6161
echo "start this script in the source root directory"
6262
exit 1
6363
fi
@@ -94,11 +94,11 @@ if [ "x$test_dir" != "x" ]; then
9494
fi
9595

9696
cd "${PREFIX}/tests" || exit 1
97-
composer require phpunit/phpunit
97+
composer require --dev phpunit/phpunit
9898
if [ $? -ne 0 ]; then exit 1; fi
99-
composer require guzzlehttp/guzzle
99+
composer require --dev guzzlehttp/guzzle
100100
if [ $? -ne 0 ]; then exit 1; fi
101-
composer update
101+
composer update --dev
102102
if [ $? -ne 0 ]; then exit 1; fi
103103
cd .. || exit 1
104104

tests/server-test/manage/roles/clone-boinc-server-docker/tasks/clone_boinc_server_docker.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
file: path="{{base_dir}}/boinc-server-docker" state=absent
33

44
- name: "Clone boinc-server-docker to {{base_dir}}"
5-
command: git clone https://github.com/marius311/boinc-server-docker.git chdir="{{base_dir}}"
6-
7-
- name: "Use 28df02f75c07650c53a7c5f0a389118f48698fda commit of boinc-server-docker"
8-
command: git checkout 28df02f75c07650c53a7c5f0a389118f48698fda chdir="{{base_dir}}/boinc-server-docker"
5+
command: git clone https://github.com/BOINC/boinc-server-docker.git chdir="{{base_dir}}"
96

107
- name: Init some submodules
118
command: git submodule init images/makeproject/boinc2docker images/makeproject/html/inc/phpmailer chdir="{{base_dir}}/boinc-server-docker"

0 commit comments

Comments
 (0)