2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-05-25 19:06:58 +02:00

Fixing travis tests

- Fixing output verbosity
This commit is contained in:
Philipp Holzer 2018-05-20 22:33:29 +02:00
parent 22a3d48c9f
commit ce49a5994b
No known key found for this signature in database
GPG key ID: 58160D7D6AF942B6
6 changed files with 42 additions and 48 deletions

View file

@ -26,7 +26,7 @@ version_greater() {
console() {
cd $WORKDIR
# Todo starting a php-executable without quoting the arguments seems not secure (but is the only way it works)
sh -c "php $WORKDIR/bin/console.php $@" > /dev/null 2&>1
sh -c "php $WORKDIR/bin/console.php $@"
}
# If there is no VERSION file or the command is "update", (re-)install Friendica
@ -41,10 +41,12 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# Removing the whole directory first
rm -fr $SOURCEDIR/friendica
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica" > /dev/null 2&>1
chmod 777 $SOURCEDIR/friendica/view/smarty3
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica"
if [ -f $SOURCEDIR/friendica/view/smarty3 ]; then
chmod 777 $SOURCEDIR/friendica/view/smarty3
fi
mkdir $SOURCEDIR/friendica/addon
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon" > /dev/null 2&>1
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon"
fi
image_version="0.0.0.0"
@ -76,7 +78,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
exit 1
fi
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR" > /dev/null 2&>1
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR"
fi
if [ ! -f $WORKDIR/.htconfig.php ] &&
@ -89,10 +91,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# TODO Workaround because of a strange permission issue
rm -fr $WORKDIR/view/smarty3/compiled
elif [ "$1" = "update" ]; then
echo "Updating Friendica"
console "dbstructure update"
exit 0
fi
fi
fi

View file

@ -26,7 +26,7 @@ version_greater() {
console() {
cd $WORKDIR
# Todo starting a php-executable without quoting the arguments seems not secure (but is the only way it works)
sh -c "php $WORKDIR/bin/console.php $@" > /dev/null 2&>1
sh -c "php $WORKDIR/bin/console.php $@"
}
# If there is no VERSION file or the command is "update", (re-)install Friendica
@ -41,10 +41,12 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# Removing the whole directory first
rm -fr $SOURCEDIR/friendica
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica" > /dev/null 2&>1
chmod 777 $SOURCEDIR/friendica/view/smarty3
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica"
if [ -f $SOURCEDIR/friendica/view/smarty3 ]; then
chmod 777 $SOURCEDIR/friendica/view/smarty3
fi
mkdir $SOURCEDIR/friendica/addon
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon" > /dev/null 2&>1
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon"
fi
image_version="0.0.0.0"
@ -76,7 +78,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
exit 1
fi
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR" > /dev/null 2&>1
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR"
fi
if [ ! -f $WORKDIR/.htconfig.php ] &&
@ -89,10 +91,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# TODO Workaround because of a strange permission issue
rm -fr $WORKDIR/view/smarty3/compiled
elif [ "$1" = "update" ]; then
echo "Updating Friendica"
console "dbstructure update"
exit 0
fi
fi
fi

View file

@ -26,7 +26,7 @@ version_greater() {
console() {
cd $WORKDIR
# Todo starting a php-executable without quoting the arguments seems not secure (but is the only way it works)
sh -c "php $WORKDIR/bin/console.php $@" > /dev/null 2&>1
sh -c "php $WORKDIR/bin/console.php $@"
}
# If there is no VERSION file or the command is "update", (re-)install Friendica
@ -41,10 +41,12 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# Removing the whole directory first
rm -fr $SOURCEDIR/friendica
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica" > /dev/null 2&>1
chmod 777 $SOURCEDIR/friendica/view/smarty3
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica"
if [ -f $SOURCEDIR/friendica/view/smarty3 ]; then
chmod 777 $SOURCEDIR/friendica/view/smarty3
fi
mkdir $SOURCEDIR/friendica/addon
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon" > /dev/null 2&>1
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon"
fi
image_version="0.0.0.0"
@ -76,7 +78,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
exit 1
fi
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR" > /dev/null 2&>1
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR"
fi
if [ ! -f $WORKDIR/.htconfig.php ] &&
@ -89,10 +91,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# TODO Workaround because of a strange permission issue
rm -fr $WORKDIR/view/smarty3/compiled
elif [ "$1" = "update" ]; then
echo "Updating Friendica"
console "dbstructure update"
exit 0
fi
fi
fi

View file

@ -26,7 +26,7 @@ version_greater() {
console() {
cd $WORKDIR
# Todo starting a php-executable without quoting the arguments seems not secure (but is the only way it works)
sh -c "php $WORKDIR/bin/console.php $@" > /dev/null 2&>1
sh -c "php $WORKDIR/bin/console.php $@"
}
# If there is no VERSION file or the command is "update", (re-)install Friendica
@ -41,10 +41,12 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# Removing the whole directory first
rm -fr $SOURCEDIR/friendica
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica" > /dev/null 2&>1
chmod 777 $SOURCEDIR/friendica/view/smarty3
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica"
if [ -f $SOURCEDIR/friendica/view/smarty3 ]; then
chmod 777 $SOURCEDIR/friendica/view/smarty3
fi
mkdir $SOURCEDIR/friendica/addon
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon" > /dev/null 2&>1
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon"
fi
image_version="0.0.0.0"
@ -76,7 +78,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
exit 1
fi
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR" > /dev/null 2&>1
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR"
fi
if [ ! -f $WORKDIR/.htconfig.php ] &&
@ -89,10 +91,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# TODO Workaround because of a strange permission issue
rm -fr $WORKDIR/view/smarty3/compiled
elif [ "$1" = "update" ]; then
echo "Updating Friendica"
console "dbstructure update"
exit 0
fi
fi
fi

View file

@ -26,7 +26,7 @@ version_greater() {
console() {
cd $WORKDIR
# Todo starting a php-executable without quoting the arguments seems not secure (but is the only way it works)
sh -c "php $WORKDIR/bin/console.php $@" > /dev/null 2&>1
sh -c "php $WORKDIR/bin/console.php $@"
}
# If there is no VERSION file or the command is "update", (re-)install Friendica
@ -41,10 +41,12 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# Removing the whole directory first
rm -fr $SOURCEDIR/friendica
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica" > /dev/null 2&>1
chmod 777 $SOURCEDIR/friendica/view/smarty3
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica"
if [ -f $SOURCEDIR/friendica/view/smarty3 ]; then
chmod 777 $SOURCEDIR/friendica/view/smarty3
fi
mkdir $SOURCEDIR/friendica/addon
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon" > /dev/null 2&>1
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon"
fi
image_version="0.0.0.0"
@ -76,7 +78,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
exit 1
fi
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR" > /dev/null 2&>1
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR"
fi
if [ ! -f $WORKDIR/.htconfig.php ] &&
@ -89,10 +91,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# TODO Workaround because of a strange permission issue
rm -fr $WORKDIR/view/smarty3/compiled
elif [ "$1" = "update" ]; then
echo "Updating Friendica"
console "dbstructure update"
exit 0
fi
fi
fi

View file

@ -26,7 +26,7 @@ version_greater() {
console() {
cd $WORKDIR
# Todo starting a php-executable without quoting the arguments seems not secure (but is the only way it works)
sh -c "php $WORKDIR/bin/console.php $@" > /dev/null 2&>1
sh -c "php $WORKDIR/bin/console.php $@"
}
# If there is no VERSION file or the command is "update", (re-)install Friendica
@ -41,10 +41,12 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# Removing the whole directory first
rm -fr $SOURCEDIR/friendica
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica" > /dev/null 2&>1
chmod 777 $SOURCEDIR/friendica/view/smarty3
sh -c "git clone -q -b $FRIENDICA_VERSION https://github.com/friendica/friendica $SOURCEDIR/friendica"
if [ -f $SOURCEDIR/friendica/view/smarty3 ]; then
chmod 777 $SOURCEDIR/friendica/view/smarty3
fi
mkdir $SOURCEDIR/friendica/addon
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon" > /dev/null 2&>1
sh -c "git clone -q -b $FRIENDICA_ADDONS https://github.com/friendica/friendica-addons $SOURCEDIR/friendica/addon"
fi
image_version="0.0.0.0"
@ -76,7 +78,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
exit 1
fi
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR" > /dev/null 2&>1
run_as "cd $WORKDIR;$WORKDIR/bin/composer.phar install -d $WORKDIR"
fi
if [ ! -f $WORKDIR/.htconfig.php ] &&
@ -89,10 +91,7 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then
# TODO Workaround because of a strange permission issue
rm -fr $WORKDIR/view/smarty3/compiled
elif [ "$1" = "update" ]; then
echo "Updating Friendica"
console "dbstructure update"
exit 0
fi
fi
fi