-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
cd /toolkit | ||
|
||
# move build files into source dir | ||
mkdir -p /toolkit/source | ||
cp -R $TRAVIS_BUILD_DIR /toolkit/source/homebridge-syno-spk | ||
|
||
# build spk | ||
./pkgscripts-ng/PkgCreate.py -c homebridge-syno-spk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
PKG_VERSION=$(cat $TRAVIS_BUILD_DIR/INFO.sh | grep version | awk -F '"' '{ print $2 }') | ||
|
||
mkdir $TRAVIS_BUILD_DIR/github-release | ||
|
||
cp /toolkit/result_spk/HomebridgeDocker-${PKG_VERSION}/HomebridgeDocker-x86_64-${PKG_VERSION}.spk $TRAVIS_BUILD_DIR/github-release/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
# create base | ||
mkdir /toolkit | ||
cd /toolkit | ||
|
||
# get syno build tools | ||
git clone https://github.com/SynologyOpenSource/pkgscripts-ng.git | ||
|
||
# deploy chroot env | ||
./pkgscripts-ng/EnvDeploy -q -v 6.0 -p x64 | ||
|
||
# this gpg key is never going to be validated so it does not need to be secure | ||
cat >foo <<EOF | ||
Key-Type: RSA | ||
Key-Length: 2048 | ||
Subkey-Type: RSA | ||
Subkey-Length: 2048 | ||
Name-Real: @oznu | ||
Name-Comment: not my real gpg key | ||
Name-Email: [email protected] | ||
Expire-Date: 0 | ||
%commit | ||
%echo done | ||
EOF | ||
|
||
gpg --batch --gen-key foo | ||
|
||
# copy gpg keys into chroot env | ||
mkdir -p /toolkit/build_env/ds.x64-6.0/home/travis/ | ||
cp -R /home/travis/.gnupg /toolkit/build_env/ds.x64-6.0/root/.gnupg | ||
cp -R /home/travis/.gnupg /toolkit/build_env/ds.x64-6.0/home/travis/.gnupg | ||
chown -R root:root /toolkit/build_env/ds.x64-6.0/root/.gnupg /toolkit/build_env/ds.x64-6.0/home/travis/.gnupg | ||
chmod -R 600 /toolkit/build_env/ds.x64-6.0/root/.gnupg /toolkit/build_env/ds.x64-6.0/home/travis/.gnupg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
language: bash | ||
|
||
sudo: required | ||
|
||
before_install: | ||
- sudo ./.ci/setup.sh | ||
|
||
script: | ||
- sudo ./.ci/build.sh | ||
|
||
before_deploy: | ||
- sudo ./.ci/deploy.sh | ||
|
||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: pUrHhrroypJpRJ9AJnxdzuktAv/ToJRtB4qxxjnNBWmBWDIhw2SQbcEODDOVtnxWaVEzKMqEpkr211gAZ/vYVG7WSawQNZLtCaohpicjutOMftu1ZcnGPSMG5jctYY1SIPnLDCPp4w2TdoeLPP3FrSrwugjmAUgZEJclf69en1+dafZZYII/nQGHALfupeWzoADDGYNfMbXethrQai7Wt24w6itopuVLmH/Cvaj4zpDvaXIty7kaF+ihb3Vy6eZof8U3CAVIFqEdsBmfYnjQ285H2RcFkV67YVQn0L6xtHpz4yikyX2FwToUDkrt9WSHuVZJoK1oVW3paNxTYlpF48+BQ7C3ZIMa1008D5yJVqizWsLlnRKf3iNC5i0f5tpJnHwuTfOEhKW8hDh18C54GmYGBzNl+Zhi3mp5LPzBDhTy1EYf9jsr1Lbmsdk0EZhyDK3BXcD8nNKNl3W0ynLpBStMCM5X079Tbjhc0jprtS/aHhfO4zaYuanAXd/imLtBm17Fe0LSf93QhKoQ8uKip1BY37fGM3p7FO5NiCoYk6ThLcgZow3FoZqdsdVZb6ipVDYwucfUYRT61v2lnKzMXNlV27JAF9AMk/UGoF3FcJbwBmjNxCg7nX4KrDzEYfRXLRstJRgJAlqJ2VgptgNozgOsR2s4p+sxLXxIVrPIN40= | ||
file_glob: true | ||
file: github-release/* | ||
skip_cleanup: true | ||
on: | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters