From 6d789a9dab008b3b70d4579a795e0d1757b0a542 Mon Sep 17 00:00:00 2001 From: Sasha Date: Mon, 30 Oct 2023 13:25:30 +0100 Subject: [PATCH] update CI --- ci/Jenkinsfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 67492bb..7309e8a 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -43,6 +43,7 @@ pipeline { stage('noise-js') { steps { script { buildExample() } } } stage('noise-rtc') { steps { script { buildExample() } } } stage('relay-direct-rtc') { steps { script { buildExample() } } } + stage('rln-js') { steps { script { buildNextJSExample() } } } } } @@ -51,7 +52,6 @@ pipeline { stage('relay-js') { steps { script { copyExample() } } } stage('store-js') { steps { script { copyExample() } } } stage('light-js') { steps { script { copyExample() } } } - stage('rln-js') { steps { script { copyExample() } } } stage('light-chat') { steps { script { copyExample() } } } } } @@ -86,3 +86,13 @@ def copyExample(example=STAGE_NAME) { sh "mkdir -p ${dest}" sh "cp -r ${source}/. ${dest}" } + +def buildNextJSExample(example=STAGE_NAME) { + def dest = "${WORKSPACE}/build/docs/${example}" + dir("examples/${example}") { + sh 'npm install --silent' + sh 'npm run build' + sh "mkdir -p ${dest}" + sh "cp -r out/. ${dest}" + } +}