File tree Expand file tree Collapse file tree 4 files changed +9
-10
lines changed
server-test/manage/roles/clone-boinc-server-docker/tasks Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1313 override :
1414 - command : phpcs-run
1515 use_website_config : true
16+ - command : phpunit
1617 - php-scrutinizer-run
1718 - js-scrutinizer-run
1819filter :
@@ -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/*'
Original file line number Diff line number Diff 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
6262fi
6363
6464ROOTDIR=$( pwd)
65- PREFIX=$( realpath -s $ROOTDIR /../bst )
65+ PREFIX=$( realpath -s $ROOTDIR /tests/server-test )
6666test_dir=" "
6767while [[ $# -gt 0 ]]; do
6868 key=" $1 "
Original file line number Diff line number Diff 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
6363fi
@@ -94,11 +94,11 @@ if [ "x$test_dir" != "x" ]; then
9494fi
9595
9696cd " ${PREFIX} /tests" || exit 1
97- composer require phpunit/phpunit
97+ composer require --dev phpunit/phpunit
9898if [ $? -ne 0 ]; then exit 1; fi
99- composer require guzzlehttp/guzzle
99+ composer require --dev guzzlehttp/guzzle
100100if [ $? -ne 0 ]; then exit 1; fi
101- composer update
101+ composer update --dev
102102if [ $? -ne 0 ]; then exit 1; fi
103103cd .. || exit 1
104104
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments