forked from MycroftAI/mycroft-core
-
Notifications
You must be signed in to change notification settings - Fork 0
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
135 changed files
with
1,705 additions
and
718 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
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 |
---|---|---|
|
@@ -52,12 +52,12 @@ pipeline { | |
--label build=${JOB_NAME} \ | ||
-t voight-kampff-mark-1:${BRANCH_ALIAS} .' | ||
echo 'Running Mark I Voight-Kampff Test Suite' | ||
timeout(time: 60, unit: 'MINUTES') | ||
timeout(time: 90, unit: 'MINUTES') | ||
{ | ||
sh 'mkdir -p $HOME/core/$BRANCH_ALIAS/allure' | ||
sh 'mkdir -p $HOME/core/$BRANCH_ALIAS/mycroft-logs' | ||
sh 'docker run \ | ||
-v "$HOME/voight-kampff/identity:/root/.mycroft/identity" \ | ||
-v "$HOME/voight-kampff/identity:/root/.config/mycroft/identity" \ | ||
-v "$HOME/core/$BRANCH_ALIAS/allure:/root/allure" \ | ||
-v "$HOME/core/$BRANCH_ALIAS/mycroft-logs:/var/log/mycroft" \ | ||
--label build=${JOB_NAME} \ | ||
|
@@ -107,29 +107,53 @@ pipeline { | |
sh 'rmdir $HOME/core/$BRANCH_ALIAS' | ||
sh ( | ||
label: 'Publish Report to Web Server', | ||
script: '''scp allure-report.zip [email protected]:~; | ||
ssh [email protected] "unzip -o ~/allure-report.zip"; | ||
script: ''' | ||
ssh [email protected] "mkdir -p ~/allure-reports/core/${BRANCH_ALIAS}"; | ||
scp allure-report.zip [email protected]:~/allure-reports/core/${BRANCH_ALIAS}; | ||
ssh [email protected] "unzip -o ~/allure-reports/core/${BRANCH_ALIAS}/allure-report.zip -d ~/allure-reports/core/${BRANCH_ALIAS}/"; | ||
ssh [email protected] "rm -rf /var/www/voight-kampff/core/${BRANCH_ALIAS}"; | ||
ssh [email protected] "mv allure-report /var/www/voight-kampff/core/${BRANCH_ALIAS}" | ||
scp mycroft-logs.zip [email protected]:~; | ||
ssh [email protected] "mv ~/allure-reports/core/${BRANCH_ALIAS}/allure-report /var/www/voight-kampff/core/${BRANCH_ALIAS}" | ||
ssh [email protected] "rm ~/allure-reports/core/${BRANCH_ALIAS}/allure-report.zip"; | ||
ssh [email protected] "rmdir ~/allure-reports/core/${BRANCH_ALIAS}"; | ||
ssh [email protected] "mkdir -p ~/mycroft-logs/core/${BRANCH_ALIAS}"; | ||
scp mycroft-logs.zip [email protected]:~/mycroft-logs/core/${BRANCH_ALIAS}/; | ||
ssh [email protected] "mkdir -p /var/www/voight-kampff/core/${BRANCH_ALIAS}/logs" | ||
ssh [email protected] "unzip -oj ~/mycroft-logs.zip -d /var/www/voight-kampff/core/${BRANCH_ALIAS}/logs/"; | ||
ssh [email protected] "unzip -oj ~/mycroft-logs/core/${BRANCH_ALIAS}/mycroft-logs.zip -d /var/www/voight-kampff/core/${BRANCH_ALIAS}/logs/"; | ||
ssh [email protected] "rm ~/mycroft-logs/core/${BRANCH_ALIAS}/mycroft-logs.zip"; | ||
ssh [email protected] "rmdir ~/mycroft-logs/core/${BRANCH_ALIAS}"; | ||
''' | ||
) | ||
echo 'Report Published' | ||
} | ||
failure { | ||
script { | ||
def comment_text = 'Voight Kampff Integration Test Failed ([Results](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + ')). ' + | ||
'\nMycroft logs are also available: ' + | ||
'[skills.log](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '/logs/skills.log), ' + | ||
'[audio.log](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '/logs/audio.log), ' + | ||
'[voice.log](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '/logs/voice.log), ' + | ||
'[bus.log](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '/logs/bus.log), ' + | ||
'[enclosure.log](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '/logs/enclosure.log)' | ||
|
||
// Create comment for Pull Requests | ||
if (env.CHANGE_ID) { | ||
echo 'Sending PR comment' | ||
pullRequest.comment('Voight Kampff Integration Test Failed ([Results](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + ')). ' + | ||
'\nMycroft logs are also available: ' + | ||
'[skills.log](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '/logs/skills.log), ' + | ||
'[audio.log](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '/logs/audio.log), ' + | ||
'[voice.log](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '/logs/voice.log), ' + | ||
'[bus.log](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '/logs/bus.log), ' + | ||
'[enclosure.log](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '/logs/enclosure.log)') | ||
def found_comment = false | ||
for (comment in pullRequest.comments) { | ||
echo "Author: ${comment.user}" | ||
if (comment.user == "devops-mycroft" && | ||
comment.body.contains("Voight Kampff")) { | ||
echo "Updating comment..." | ||
found_comment = true | ||
pullRequest.editComment( | ||
comment.id, | ||
comment_text | ||
) | ||
} | ||
} | ||
if (!found_comment) { | ||
echo 'Sending PR comment' | ||
pullRequest.comment(comment_text) | ||
} | ||
} | ||
} | ||
// Send failure email containing a link to the Jenkins build | ||
|
@@ -184,8 +208,25 @@ pipeline { | |
success { | ||
script { | ||
if (env.CHANGE_ID) { | ||
echo 'Sending PR comment' | ||
pullRequest.comment('Voight Kampff Integration Test Succeeded ([Results](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '))') | ||
def comment_text = 'Voight Kampff Integration Test Succeeded ([Results](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '))' | ||
def found_comment = false | ||
for (comment in pullRequest.comments) { | ||
echo "Author: ${comment.user}" | ||
if (comment.user == "devops-mycroft" && | ||
comment.body.contains("Voight Kampff")) { | ||
echo "Updating comment!" | ||
found_comment = true | ||
pullRequest.editComment( | ||
comment.id, | ||
comment_text | ||
) | ||
break | ||
} | ||
} | ||
if (!found_comment) { | ||
echo 'Sending PR comment' | ||
pullRequest.comment(comment_text) | ||
} | ||
} | ||
} | ||
// Send success email containing a link to the Jenkins build | ||
|
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.. Mycroft documentation master file | ||
Mycroft-core technical documentation | ||
==================================== | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
mycroft.audio package | ||
mycroft.audio | ||
==================== | ||
|
||
wait_while_speaking | ||
------------------- | ||
.. autofunction:: mycroft.audio.wait_while_speaking | ||
.. automodule:: mycroft.audio | ||
:members: | ||
is_speaking, | ||
stop_speaking, | ||
wait_while_speaking |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mycroft.util.format | ||
================== | ||
=================== | ||
|
||
.. automodule:: mycroft.util.format | ||
:members: | ||
|
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
Oops, something went wrong.