-
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 #5 from analogdevicesinc/change-ci
Switch CI to jenkins
- Loading branch information
Showing
2 changed files
with
52 additions
and
59 deletions.
There are no files selected for viewing
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,52 @@ | ||
@Library('tfc-lib') _ | ||
|
||
dockerConfig = getDockerConfig(['MATLAB','Vivado'], matlabHSPro=false) | ||
dockerConfig.add("-e MLRELEASE=R2020a") | ||
dockerHost = 'docker' | ||
|
||
//////////////////////////// | ||
|
||
hdlBranches = ['master'] | ||
|
||
stage("Build Toolbox") { | ||
dockerParallelBuild(hdlBranches, dockerHost, dockerConfig) { | ||
branchName -> | ||
withEnv(['HDLBRANCH='+branchName]) { | ||
checkout scm | ||
sh 'git submodule update --init' | ||
sh 'make -C ./CI/scripts gen_tlbx' | ||
} | ||
stash includes: '**', name: 'builtSources', useDefaultExcludes: false | ||
archiveArtifacts artifacts: '*.mltbx', followSymlinks: false, allowEmptyArchive: true | ||
} | ||
} | ||
|
||
///////////////////////////////////////////////////// | ||
|
||
classNames = ['IMU'] | ||
|
||
stage("Hardware Streaming Tests") { | ||
dockerParallelBuild(classNames, dockerHost, dockerConfig) { | ||
branchName -> | ||
withEnv(['HW='+branchName]) { | ||
unstash "builtSources" | ||
sh 'make -C ./CI/scripts test_streaming' | ||
} | ||
} | ||
} | ||
|
||
////////////////////////////////////////////////////// | ||
|
||
node { | ||
stage('Deploy Development') { | ||
unstash "builtSources" | ||
uploadArtifactory('SensorToolbox','*.mltbx') | ||
} | ||
if (env.BRANCH_NAME == 'master') { | ||
stage('Deploy Production') { | ||
unstash "builtSources" | ||
//uploadFTP('SensorToolbox','*.mltbx') | ||
} | ||
} | ||
} | ||
|