-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from fledge-iot/2.2.0RC
2.2.0RC
- Loading branch information
Showing
16 changed files
with
354 additions
and
180 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,16 @@ | ||
# vi | ||
*.swp | ||
|
||
# MacOS Finder | ||
.DS_Store | ||
._* | ||
|
||
# IDE | ||
*.idea | ||
|
||
# Compiled Object files | ||
*.pyc | ||
|
||
# Test | ||
.pytest_cache | ||
test_result.xml |
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 +1 @@ | ||
A Python plugin for Fledge that sends data north to the Azure IoT Hub | ||
A Python based Azure IoT Hub device client plugin for Fledge that sends data north to the Azure IoT Hub. |
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,62 @@ | ||
timestamps { | ||
node("ubuntu18-agent") { | ||
catchError { | ||
checkout scm | ||
dir_exists = sh ( | ||
script: "test -d 'tests' && echo 'Y' || echo 'N' ", | ||
returnStdout: true | ||
).trim() | ||
|
||
if (dir_exists == 'N'){ | ||
currentBuild.result= 'FAILURE' | ||
echo "No tests directory found! Exiting." | ||
return | ||
} | ||
|
||
try { | ||
stage("Prerequisites"){ | ||
// Change to corresponding CORE_BRANCH as required | ||
// e.g. FOGL-xxxx, main etc. | ||
sh ''' | ||
CORE_BRANCH='2.2.0RC' | ||
${HOME}/buildFledge ${CORE_BRANCH} ${WORKSPACE} | ||
''' | ||
} | ||
} catch (e) { | ||
currentBuild.result = 'FAILURE' | ||
echo "Failed to build Fledge; required to run the tests!" | ||
return | ||
} | ||
|
||
try { | ||
stage("Run Tests"){ | ||
echo "Executing tests..." | ||
sh ''' | ||
. ${WORKSPACE}/PLUGIN_PR_ENV/bin/activate | ||
export FLEDGE_ROOT=$HOME/fledge && export PYTHONPATH=$HOME/fledge/python | ||
cd tests && python3 -m pytest -vv --ignore=system --ignore=api --junit-xml=test_result.xml | ||
''' | ||
echo "Done." | ||
} | ||
} catch (e) { | ||
result = "TESTS FAILED" | ||
currentBuild.result = 'FAILURE' | ||
echo "Tests failed!" | ||
} | ||
|
||
try { | ||
stage("Publish Test Report"){ | ||
junit "tests/test_result.xml" | ||
} | ||
} catch (e) { | ||
result = "TEST REPORT GENERATION FAILED" | ||
currentBuild.result = 'FAILURE' | ||
echo "Failed to generate test reports!" | ||
} | ||
} | ||
stage ("Cleanup"){ | ||
// Add here if any cleanup is required | ||
echo "Done." | ||
} | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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,2 @@ | ||
fledge_north_azure_iot_version=2.2.0 | ||
fledge_version>=2.2 |
File renamed without changes
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 was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.