mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Added Gitlab runner CI support for Tizen builds
This commit is contained in:
parent
fb28e780b8
commit
6233e3e170
3 changed files with 41 additions and 6 deletions
|
@ -16,3 +16,4 @@ include:
|
|||
- local: 'receivers/android/.gitlab-ci.yml'
|
||||
- local: 'receivers/electron/.gitlab-ci.yml'
|
||||
- local: 'receivers/webos/.gitlab-ci.yml'
|
||||
- local: 'receivers/tizen/.gitlab-ci.yml'
|
||||
|
|
34
receivers/tizen/.gitlab-ci.yml
Normal file
34
receivers/tizen/.gitlab-ci.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
buildTizenOSDockerContainer:
|
||||
stage: buildDockerContainers
|
||||
image: docker:20.10.16
|
||||
services:
|
||||
- docker:20.10.16-dind
|
||||
tags:
|
||||
- fcast-instance-runner
|
||||
before_script:
|
||||
- cd receivers/tizen
|
||||
script:
|
||||
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
|
||||
- docker build -t $CI_REGISTRY/videostreaming/fcast/receiver-tizen-dev:latest .
|
||||
- docker push $CI_REGISTRY/videostreaming/fcast/receiver-tizen-dev:latest
|
||||
when: manual
|
||||
|
||||
buildTizenOSReceiver:
|
||||
stage: buildTizenOSReceiver
|
||||
image: gitlab.futo.org:5050/videostreaming/fcast/receiver-tizen-dev:latest
|
||||
tags:
|
||||
- fcast-instance-runner
|
||||
before_script:
|
||||
- cd receivers/tizen
|
||||
script:
|
||||
- npm install
|
||||
- scripts/build.sh
|
||||
artifacts:
|
||||
untracked: false
|
||||
when: on_success
|
||||
access: all
|
||||
expire_in: "30 days"
|
||||
paths:
|
||||
- receivers/tizen/FCastReceiver/.buildResult/FCastReceiver.wgt
|
||||
when: manual
|
|
@ -15,16 +15,16 @@ cd .buildResult
|
|||
# it has to be regenerated on every packaging...
|
||||
# https://stackoverflow.com/a/61718469
|
||||
|
||||
tizen security-profiles add --active --force --name default --author /home/ubuntu/author/default/author.p12 --password $CERT_AUTHOR_PASSWORD --dist /home/ubuntu/SamsungCertificate/default/distributor.p12 --dist-password $CERT_DIST_PASSWORD
|
||||
tizen security-profiles add --active --force --name default --author $CERT_PATH/author/default/author.p12 --password $CERT_AUTHOR_PASSWORD --dist $CERT_PATH/SamsungCertificate/default/distributor.p12 --dist-password $CERT_DIST_PASSWORD
|
||||
tizen cli-config "profiles.path=/home/ubuntu/tizen-studio-data/profile/profiles.xml"
|
||||
sed -i "s/\/home\/ubuntu\/author\/default\/author.pwd/$CERT_AUTHOR_PASSWORD/g" /home/ubuntu/tizen-studio-data/profile/profiles.xml
|
||||
sed -i "s/\/home\/ubuntu\/SamsungCertificate\/default\/distributor.pwd/$CERT_DIST_PASSWORD/g" /home/ubuntu/tizen-studio-data/profile/profiles.xml
|
||||
sed -i "s/$CERT_PATH\/author\/default\/author.pwd/$CERT_AUTHOR_PASSWORD/g" /home/ubuntu/tizen-studio-data/profile/profiles.xml
|
||||
sed -i "s/$CERT_PATH\/SamsungCertificate\/default\/distributor.pwd/$CERT_DIST_PASSWORD/g" /home/ubuntu/tizen-studio-data/profile/profiles.xml
|
||||
../../scripts/package.sh tizen package -t wgt -s default -- .
|
||||
|
||||
tizen security-profiles add --active --force --name default --author /home/ubuntu/author/default/author.p12 --password $CERT_AUTHOR_PASSWORD --dist /home/ubuntu/SamsungCertificate/default/distributor.p12 --dist-password $CERT_DIST_PASSWORD
|
||||
tizen security-profiles add --active --force --name default --author $CERT_PATH/author/default/author.p12 --password $CERT_AUTHOR_PASSWORD --dist $CERT_PATH/SamsungCertificate/default/distributor.p12 --dist-password $CERT_DIST_PASSWORD
|
||||
tizen cli-config "profiles.path=/home/ubuntu/tizen-studio-data/profile/profiles.xml"
|
||||
sed -i "s/\/home\/ubuntu\/author\/default\/author.pwd/$CERT_AUTHOR_PASSWORD/g" /home/ubuntu/tizen-studio-data/profile/profiles.xml
|
||||
sed -i "s/\/home\/ubuntu\/SamsungCertificate\/default\/distributor.pwd/$CERT_DIST_PASSWORD/g" /home/ubuntu/tizen-studio-data/profile/profiles.xml
|
||||
sed -i "s/$CERT_PATH\/author\/default\/author.pwd/$CERT_AUTHOR_PASSWORD/g" /home/ubuntu/tizen-studio-data/profile/profiles.xml
|
||||
sed -i "s/$CERT_PATH\/SamsungCertificate\/default\/distributor.pwd/$CERT_DIST_PASSWORD/g" /home/ubuntu/tizen-studio-data/profile/profiles.xml
|
||||
../../scripts/package.sh tizen package -t wgt -s default -r ../../FCastReceiverService/bin/Release/netcoreapp2.1/com.futo.FCastReceiverService-1.0.0.tpk -- FCastReceiver.wgt
|
||||
|
||||
cd ../../
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue