Skip to content

Commit fdcf543

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

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ filter:
2727
- '*.min.js'
2828
- 'drupal/sites/default/modules/boinc/*'
2929
- 'drupal/sites/default/themes/boinc/*'
30+
- 'tests/server-test/*'
3031
dependency_paths:
3132
- 'html/inc/htmLawed.php'
3233
- '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=$ROOTDIR/tests/server-test
6666
test_dir=""
6767
while [[ $# -gt 0 ]]; do
6868
key="$1"

tests/integration_test/installTestSuite.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ 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
6464

6565
ROOTDIR=$(pwd)
66-
PREFIX=$(realpath -s $ROOTDIR/tests/server-test)
66+
PREFIX=$ROOTDIR/tests/server-test
6767
test_dir=""
6868
while [[ $# -gt 0 ]]; do
6969
key="$1"
@@ -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)