mirror of
https://github.com/YunoHost/yunohost-ci.git
synced 2024-09-03 20:05:53 +02:00
Remove debug log
This commit is contained in:
parent
bfb074378f
commit
9a8b81d125
2 changed files with 6 additions and 6 deletions
|
@ -10,8 +10,6 @@ set -eo pipefail
|
||||||
trap "exit $SYSTEM_FAILURE_EXIT_CODE" ERR
|
trap "exit $SYSTEM_FAILURE_EXIT_CODE" ERR
|
||||||
|
|
||||||
start_container () {
|
start_container () {
|
||||||
set -x
|
|
||||||
|
|
||||||
if lxc info "$CONTAINER_ID" >/dev/null 2>/dev/null ; then
|
if lxc info "$CONTAINER_ID" >/dev/null 2>/dev/null ; then
|
||||||
echo 'Found old container, deleting'
|
echo 'Found old container, deleting'
|
||||||
lxc delete -f "$CONTAINER_ID"
|
lxc delete -f "$CONTAINER_ID"
|
||||||
|
@ -31,8 +29,6 @@ start_container () {
|
||||||
chmod 777 $current_dir/cache
|
chmod 777 $current_dir/cache
|
||||||
lxc config device add "$CONTAINER_ID" cache-folder disk path=/cache source="$current_dir/cache"
|
lxc config device add "$CONTAINER_ID" cache-folder disk path=/cache source="$current_dir/cache"
|
||||||
|
|
||||||
set +x
|
|
||||||
|
|
||||||
wait_container $CONTAINER_ID
|
wait_container $CONTAINER_ID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
8
run.sh
8
run.sh
|
@ -13,6 +13,8 @@ create_sym_link() {
|
||||||
}
|
}
|
||||||
|
|
||||||
link_moulinette_from_git() {
|
link_moulinette_from_git() {
|
||||||
|
echo "Moulinette: using the $CURRENT_BRANCH branch if it exists, $DEFAULT_BRANCH otherwise"
|
||||||
|
|
||||||
moulinette_dir="/tmp/ci_moulinette"
|
moulinette_dir="/tmp/ci_moulinette"
|
||||||
lxc exec "$CONTAINER_ID" -- sh -c "mkdir $moulinette_dir"
|
lxc exec "$CONTAINER_ID" -- sh -c "mkdir $moulinette_dir"
|
||||||
lxc exec "$CONTAINER_ID" -- sh -c "git clone https://github.com/YunoHost/moulinette $moulinette_dir"
|
lxc exec "$CONTAINER_ID" -- sh -c "git clone https://github.com/YunoHost/moulinette $moulinette_dir"
|
||||||
|
@ -29,6 +31,8 @@ link_moulinette_from_git() {
|
||||||
}
|
}
|
||||||
|
|
||||||
link_ssowat_from_git() {
|
link_ssowat_from_git() {
|
||||||
|
echo "SSOWAT: using the $CURRENT_BRANCH branch if it exists, $DEFAULT_BRANCH otherwise"
|
||||||
|
|
||||||
ssowat_dir="/tmp/ci_ssowat"
|
ssowat_dir="/tmp/ci_ssowat"
|
||||||
lxc exec "$CONTAINER_ID" -- sh -c "mkdir $ssowat_dir"
|
lxc exec "$CONTAINER_ID" -- sh -c "mkdir $ssowat_dir"
|
||||||
lxc exec "$CONTAINER_ID" -- sh -c "git clone https://github.com/YunoHost/ssowat $ssowat_dir"
|
lxc exec "$CONTAINER_ID" -- sh -c "git clone https://github.com/YunoHost/ssowat $ssowat_dir"
|
||||||
|
@ -55,7 +59,8 @@ case ${2} in
|
||||||
build_script)
|
build_script)
|
||||||
case $PROJECT_NAME in
|
case $PROJECT_NAME in
|
||||||
yunohost)
|
yunohost)
|
||||||
set -x
|
echo "Link yunohost"
|
||||||
|
|
||||||
# bin
|
# bin
|
||||||
create_sym_link "$PROJECT_DIR/bin/yunohost" "/usr/bin/yunohost"
|
create_sym_link "$PROJECT_DIR/bin/yunohost" "/usr/bin/yunohost"
|
||||||
create_sym_link "$PROJECT_DIR/bin/yunohost-api" "/usr/bin/yunohost-api"
|
create_sym_link "$PROJECT_DIR/bin/yunohost-api" "/usr/bin/yunohost-api"
|
||||||
|
@ -88,7 +93,6 @@ case ${2} in
|
||||||
|
|
||||||
# ssowat
|
# ssowat
|
||||||
link_ssowat_from_git
|
link_ssowat_from_git
|
||||||
set +x
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue