Skip to content

Commit

Permalink
Merge pull request #5 from analogdevicesinc/change-ci
Browse files Browse the repository at this point in the history
Switch CI to jenkins
  • Loading branch information
tfcollins authored Feb 4, 2021
2 parents 9065b22 + 0fea871 commit d962a6b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 59 deletions.
59 changes: 0 additions & 59 deletions .gitlab-ci.yml

This file was deleted.

52 changes: 52 additions & 0 deletions Jenkinsfile
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')
}
}
}

0 comments on commit d962a6b

Please sign in to comment.