diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3404bd9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +{ + "language": "node_js", + "before_install": [ + "git clone https://github.com/YunoHost/package_linter /tmp/package_linter" + ], + "script": [ + "/tmp/package_linter/package_linter.py ./" + ], + "group": "stable", + "dist": "trusty", + "os": "linux" +} diff --git a/scripts/backup b/scripts/backup index d3d961f..bcb2b3a 100644 --- a/scripts/backup +++ b/scripts/backup @@ -3,6 +3,7 @@ # yunohost backup create -n "bozon-test" --ignore-system --apps bozon # yunohost backup delete bozon-test +set -eu if [ ! -e _common.sh ]; then # Get the _common.sh file if it's not in the current directory sudo cp ../settings/scripts/_common.sh ./_common.sh diff --git a/scripts/install b/scripts/install index 6b328fa..61fe699 100644 --- a/scripts/install +++ b/scripts/install @@ -1,5 +1,6 @@ #!/bin/bash +set -eu source _common.sh source /usr/share/yunohost/helpers diff --git a/scripts/remove b/scripts/remove index 6e36d13..dde330e 100644 --- a/scripts/remove +++ b/scripts/remove @@ -2,6 +2,7 @@ # to test the functionnality : # yunohost app remove bozon +set -u if [ ! -e _common.sh ]; then # Get the _common.sh file if it's not in the current directory sudo cp ../settings/scripts/_common.sh ./_common.sh diff --git a/scripts/restore b/scripts/restore index 2055b36..f51791e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -4,6 +4,7 @@ # yunohost app remove bozon # yunohost backup restore "bozon-test" +set -eu if [ ! -e _common.sh ]; then # Fetch helpers file if not in current directory sudo cp ../settings/scripts/_common.sh ./_common.sh diff --git a/scripts/upgrade b/scripts/upgrade index a024b5e..f87bc8c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,5 +1,6 @@ #!/bin/bash +set -eu source _common.sh source /usr/share/yunohost/helpers