mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Echo set_status
This commit is contained in:
parent
ead4d7bf2d
commit
c5ee6efb2b
3 changed files with 57 additions and 1 deletions
|
@ -1 +1,32 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
export PHPBB_TEST_DBMS='phpbb\db\driver\mysqli'
|
||||
export PHPBB_TEST_DBHOST='mysql'
|
||||
export PHPBB_TEST_DBPORT='3306'
|
||||
export PHPBB_TEST_DBNAME='phpbb_tests'
|
||||
export PHPBB_TEST_DBUSER='root'
|
||||
export PHPBB_TEST_DBPASSWD=''
|
||||
export PHPBB_TEST_TABLE_PREFIX='phpbb_'
|
||||
export DOCKER_LINK='--link mysql:mysql'
|
||||
|
||||
function start {
|
||||
cat <<EOL > /tmp/phpbb.cnf
|
||||
[mysqld]
|
||||
default-storage-engine=MyISAM
|
||||
default-tmp-storage-engine=MyISAM
|
||||
tmpdir=/dev/shm/
|
||||
datadir=/dev/shm/
|
||||
EOL
|
||||
|
||||
docker run \
|
||||
-d \
|
||||
--volume /tmp/phpbb.cnf:/etc/mysql/conf.d/phpbb.cnf \
|
||||
--name mysql \
|
||||
--shm-size=128M \
|
||||
--env MYSQL_ROOT_PASSWORD='' \
|
||||
--env MYSQL_DATABASE='phpbb_tests' \
|
||||
--env MYSQL_ALLOW_EMPTY_PASSWORD='yes' \
|
||||
mysql
|
||||
|
||||
docker run --rm --link mysql_test:mysql waisbrot/wait
|
||||
}
|
||||
|
|
24
docker/scripts/jobs/unit-tests.sh
Normal file
24
docker/scripts/jobs/unit-tests.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
pwd=$(dirname "$0")
|
||||
|
||||
db=$1
|
||||
php=$2
|
||||
|
||||
. ${pwd}/../db/${db}.sh
|
||||
|
||||
start_db
|
||||
|
||||
docker run \
|
||||
--user $(id -u):$(id -g) \
|
||||
--link mysql:mysql \
|
||||
--env PHPBB_TEST_DBMS="phpbb\db\driver\mysqli" \
|
||||
--env PHPBB_TEST_DBHOST="mysql" \
|
||||
--env PHPBB_TEST_DBPORT="3306" \
|
||||
--env PHPBB_TEST_DBNAME="phpbb_tests" \
|
||||
--env PHPBB_TEST_DBUSER="root" \
|
||||
--env PHPBB_TEST_DBPASSWD="" \
|
||||
--env PHPBB_TEST_TABLE_PREFIX="phpbb_" \
|
||||
--volume ${bamboo.working.directory}:/data \
|
||||
--workdir /data \
|
||||
phpbb/php-ut-5.6-mysql php -d memory_limit=-1 phpBB/vendor/bin/phpunit --group __nogroup__ --log-junit build/logs/phpunit.xml
|
|
@ -6,4 +6,5 @@ status=$1
|
|||
description=$2
|
||||
step=$3
|
||||
|
||||
curl -H "Authorization: token ${GITHUB_TOKEN}" --request POST --data "{\"state\": \"${status}\", \"description\": \"${description}\", \"target_url\": \"${BUILD_RESULT_URL}\", \"context\": \"phpBB continuous integration - ${step}\"}" https://api.github.com/repos/phpbb/phpbb/statuses/${last_commit} > /dev/null
|
||||
echo curl -H "Authorization: token ${GITHUB_TOKEN}" --request POST --data "{\"state\": \"${status}\", \"description\": \"${description}\", \"target_url\": \"${BUILD_RESULT_URL}\", \"context\": \"phpBB continuous integration - ${step}\"}" https://api.github.com/repos/phpbb/phpbb/statuses/${last_commit}
|
||||
curl -H "Authorization: token ${GITHUB_TOKEN}" --request POST --data "{\"state\": \"${status}\", \"description\": \"${description}\", \"target_url\": \"${BUILD_RESULT_URL}\", \"context\": \"phpBB continuous integration - ${step}\"}" https://api.github.com/repos/phpbb/phpbb/statuses/${last_commit}
|
||||
|
|
Loading…
Add table
Reference in a new issue