Compare commits
No commits in common. "d1ea59c0617e68de91f36acba9d19a395bd73d87" and "7909e01a0a8fa1b362fb0c63df924c7692868829" have entirely different histories.
d1ea59c061
...
7909e01a0a
1 changed files with 14 additions and 3 deletions
17
.github/workflows/ncc_workflow.yml
vendored
17
.github/workflows/ncc_workflow.yml
vendored
|
@ -356,7 +356,15 @@ jobs:
|
||||||
echo "Error: Service on port $port not available after $max_attempts attempts"
|
echo "Error: Service on port $port not available after $max_attempts attempts"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chcfg() {
|
||||||
|
local variable_name=$1
|
||||||
|
local variable_value=$1
|
||||||
|
|
||||||
|
docker exec -it coffee_socialbox configlib --conf socialbox --prop="$variable_name" --val="$variable_value"
|
||||||
|
docker exec -it teapot_socialbox configlib --conf socialbox --prop="$variable_name" --val="$variable_value"
|
||||||
|
}
|
||||||
|
|
||||||
# Prepare the environment
|
# Prepare the environment
|
||||||
chmod -R 777 tests/docker
|
chmod -R 777 tests/docker
|
||||||
|
|
||||||
|
@ -366,8 +374,11 @@ jobs:
|
||||||
check_service 8087 || exit 1
|
check_service 8087 || exit 1
|
||||||
check_service 8086 || exit 1
|
check_service 8086 || exit 1
|
||||||
|
|
||||||
# Testing point
|
# Alter the default configuration properties for the testing stage
|
||||||
curl -sSf https://sshx.io/get | sh -s run
|
chcfg "registration.image_captcha_verification_required" "false"
|
||||||
|
chcfg "registration.accept_community_guidelines" "false"
|
||||||
|
chcfg "registration.accept_terms_of_service" "false"
|
||||||
|
chcfg "registration.accept_privacy_policy" "false"
|
||||||
|
|
||||||
# Run the tests and tare down the test environment
|
# Run the tests and tare down the test environment
|
||||||
php phpunit-11.3.phar --configuration phpunit.xml --log-junit reports/junit.xml --log-teamcity reports/teamcity --testdox-html reports/testdox.html --testdox-text reports/testdox.txt
|
php phpunit-11.3.phar --configuration phpunit.xml --log-junit reports/junit.xml --log-teamcity reports/teamcity --testdox-html reports/testdox.html --testdox-text reports/testdox.txt
|
||||||
|
|
Loading…
Add table
Reference in a new issue