Skip to content

Commit

Permalink
Scripts + CI: Correcting permissions and adding separate build script (
Browse files Browse the repository at this point in the history
…#177)

* scripts: Adding missing executable permissions

These are needed to make the scripts executable.
Adding these permissions are added by the Jenkins script anyways.

Signed-off-by: Thomas Karl Pietrowski <[email protected]> (github: thopiekar)

* CI: Adding separate build script

It will allow us to make builds locally the same way as Jenkins does. Easily..

Signed-off-by: Thomas Karl Pietrowski <[email protected]> (github: thopiekar)

* build: Removing chmod a+x on scripts

They have been chmod'ed in 6811044 already.

Signed-off-by: Thomas Karl Pietrowski <[email protected]> (github: thopiekar)

* build: Exclude the build script itself from the spk package

Nothing left to say.

Signed-off-by: Thomas Karl Pietrowski <[email protected]> (github: thopiekar)

* CI: Correcting name of the file to be deployed

Nothing to add here.

Signed-off-by: Thomas Karl Pietrowski <[email protected]> (github: thopiekar)
  • Loading branch information
thopiekar authored Dec 28, 2020
1 parent 3e0e46d commit a855486
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ language: shell
os: linux
dist: trusty
script:
- export FILE_NAME=openHAB-$TRAVIS_BRANCH-syno-noarch-0.001.spk
- echo $FILE_NAME
- chmod a+x scripts/*
- tar cf $FILE_NAME * --exclude=*.md --exclude=.travis.* --owner=0 --group=0 --numeric-owner
- OPENHAB_VERSION=$TRAVIS_BRANCH ./build.sh
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: PJMqKnfITCeWIw6AneWqrGZD2P9vKuUZvndQYrNIJQqoZW8e+nJxUy4c0YUxnCnL3YNcJP+U8DVBI3UzmCZhN8PO4n7Pdq5MacNVJT0XLtOQ93D7HR8UJqsAWQd0I5PwGubCx6ZgkobrlE64Wo4qyiZ8BkCIEu/FE+NYFaHyhQMPLMtUScf1nADDyGu+kamxPcg6LLDDVhxLR8SUbj0f1IzeuR9kthq38LD6qOtr4Tr6LPNyttnoXHgyIuPjGkYARwXhr5qRG+d74hf7uhQNplIYe/obtKfYWdcknP9e1B4/ZgUfVWZ2pWfTBHkwnVoIqquJwI6JijxM4BUEwwKMOP2/LlSauqHqYOqu6D+On1cPrqoUtoTLEoBN7C3Mnkq980GxUEwXdzPU0OpLVGIHr20gKe2LwDLmZCydPO+I+PPOMxKwqVy05lDHb5lEytQFEeOL5cF+2BVX6Y612iqPWqvqdQIVEVvuLGQk5lDtAnvyWkFZ830CU0tyUkqVO/X7DIFo6BdCccWN7Qo5xaZZ69BaOxWHLftPCj2VBRyqWoiLHRZLBaGjEzgLa811aMprIA/rtxBn/DM1XurK6PB078/d0YDvbnraxxK0g2y9ZiL659OO8F81DhTD1Vc366IR1YQWjI0mW9M6+mzJKGlrRvXzDSqNd69FnyHxN4B6+2Q=
file: $FILE_NAME
file: openHAB-$TRAVIS_BRANCH-syno-noarch-0.001.spk
on:
tags: true
repo: openhab/openhab-syno-spk
Expand Down
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash -eux

[[ -z "${OPENHAB_VERSION:-}" ]] && echo "OPENHAB_VERSION is not set!" && exit 1

FILE_NAME=openHAB-${OPENHAB_VERSION}-syno-noarch-0.001.spk
echo ${FILE_NAME}

rm -f ${FILE_NAME}

tar cf ${FILE_NAME} \
--exclude=build.sh \
--exclude=.git* \
--exclude=\*.md \
--exclude=.travis.\* \
--owner=0 \
--group=0 \
--numeric-owner \
*
Empty file modified scripts/installer.sh
100644 → 100755
Empty file.
Empty file modified scripts/postinst
100644 → 100755
Empty file.
Empty file modified scripts/postuninst
100644 → 100755
Empty file.
Empty file modified scripts/postupgrade
100644 → 100755
Empty file.
Empty file modified scripts/preinst
100644 → 100755
Empty file.
Empty file modified scripts/preuninst
100644 → 100755
Empty file.
Empty file modified scripts/preupgrade
100644 → 100755
Empty file.
Empty file modified scripts/restore
100644 → 100755
Empty file.
Empty file modified scripts/start-stop-status
100644 → 100755
Empty file.
Empty file modified scripts/start-stop-status.sh
100644 → 100755
Empty file.

0 comments on commit a855486

Please sign in to comment.