Skip to content

Commit eaa92bf

Browse files
authored
Merge pull request #35 from samchesney/feature/jenkins
Add Jenkins Pipeline
2 parents e9a2dd2 + 5eb731d commit eaa92bf

20 files changed

Lines changed: 118 additions & 6 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ org.eclipse.cdt.core.prefs
2222
xsim.args
2323
tests/src_output
2424
*.bak
25+
**/.venv/**
2526

2627
# waf build files
2728
.lock-waf_*

Brewfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tap 'homebrew/core'
2+
3+
brew 'perl'
4+
brew 'cpanm'
5+
6+
brew 'python@2'
7+
brew 'pipenv'

Jenkinsfile

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
@Library('xmos_jenkins_shared_library@develop') _
2+
3+
getApproval()
4+
5+
pipeline {
6+
agent {
7+
label 'x86_64&&brew&&macOS'
8+
}
9+
environment {
10+
REPO = 'lib_src'
11+
VIEW = "${env.JOB_NAME.contains('PR-') ? REPO+'_'+env.CHANGE_TARGET : REPO+'_'+env.BRANCH_NAME}"
12+
}
13+
triggers {
14+
/* Trigger this Pipeline on changes to the repos dependencies
15+
*
16+
* If this Pipeline is running in a pull request, the triggers are set
17+
* on the base branch the PR is set to merge in to.
18+
*
19+
* Otherwise the triggers are set on the branch of a matching name to the
20+
* one this Pipeline is on.
21+
*/
22+
upstream(
23+
upstreamProjects:
24+
(env.JOB_NAME.contains('PR-') ?
25+
"../lib_gpio/${env.CHANGE_TARGET}," +
26+
"../lib_i2c/${env.CHANGE_TARGET}," +
27+
"../lib_i2s/${env.CHANGE_TARGET}," +
28+
"../lib_logging/${env.CHANGE_TARGET}," +
29+
"../lib_spdif/${env.CHANGE_TARGET}," +
30+
"../lib_xassert/${env.CHANGE_TARGET}," +
31+
"../tools_released/${env.CHANGE_TARGET}," +
32+
"../tools_xmostest/${env.CHANGE_TARGET}," +
33+
"../xdoc_released/${env.CHANGE_TARGET}"
34+
:
35+
"../lib_gpio/${env.BRANCH_NAME}," +
36+
"../lib_i2c/${env.BRANCH_NAME}," +
37+
"../lib_i2s/${env.BRANCH_NAME}," +
38+
"../lib_logging/${env.BRANCH_NAME}," +
39+
"../lib_spdif/${env.BRANCH_NAME}," +
40+
"../lib_xassert/${env.BRANCH_NAME}," +
41+
"../tools_released/${env.BRANCH_NAME}," +
42+
"../tools_xmostest/${env.BRANCH_NAME}," +
43+
"../xdoc_released/${env.BRANCH_NAME}"),
44+
threshold: hudson.model.Result.SUCCESS
45+
)
46+
}
47+
options {
48+
skipDefaultCheckout()
49+
}
50+
stages {
51+
stage('Get view') {
52+
steps {
53+
xcorePrepareSandbox("${VIEW}", "${REPO}")
54+
}
55+
}
56+
stage('Library checks') {
57+
steps {
58+
xcoreLibraryChecks("${REPO}")
59+
}
60+
}
61+
stage('xCORE builds') {
62+
steps {
63+
dir("${REPO}") {
64+
xcoreAllAppsBuild('examples')
65+
xcoreAllAppNotesBuild('examples')
66+
dir("${REPO}") {
67+
runXdoc('doc')
68+
}
69+
}
70+
}
71+
}
72+
stage('Tests') {
73+
steps {
74+
runXmostest("${REPO}", 'tests')
75+
}
76+
}
77+
}
78+
post {
79+
success {
80+
updateViewfiles()
81+
}
82+
cleanup {
83+
cleanWs()
84+
}
85+
}
86+
}

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Software Release License Agreement
22

3-
Copyright (c) 2016-2018, XMOS, All rights reserved.
3+
Copyright (c) 2016-2019, XMOS, All rights reserved.
44

55
BY ACCESSING, USING, INSTALLING OR DOWNLOADING THE XMOS SOFTWARE, YOU AGREE TO BE BOUND BY THE FOLLOWING TERMS. IF YOU DO NOT AGREE TO THESE, DO NOT ATTEMPT TO DOWNLOAD, ACCESS OR USE THE XMOS Software.
66

Pipfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
flake8 = "*"

cpanfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
requires 'File::Copy::Recursive';
2+
requires 'LWP::Simple'

lib_src/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Software Release License Agreement
22

3-
Copyright (c) 2016-2018, XMOS, All rights reserved.
3+
Copyright (c) 2016-2019, XMOS, All rights reserved.
44

55
BY ACCESSING, USING, INSTALLING OR DOWNLOADING THE XMOS SOFTWARE, YOU AGREE TO BE BOUND BY THE FOLLOWING TERMS. IF YOU DO NOT AGREE TO THESE, DO NOT ATTEMPT TO DOWNLOAD, ACCESS OR USE THE XMOS Software.
66

lib_src/module_build_info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ OPTIONAL_HEADERS += src_conf.h
22

33
MODULE_XCC_FLAGS = $(XCC_FLAGS) -Wno-missing-braces -O3
44
DEPENDENT_MODULES = lib_logging(>=2.1.1) lib_xassert(>=3.0.1)
5-
VERSION = 1.1.1
5+
VERSION = 1.1.2

lib_src/src/fixed_factor_of_3_voice/src_ff3v_fir_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
# Copyright (c) 2016-2019, XMOS Ltd, All rights reserved
23
import os.path
34
import numpy as np
45
from scipy import signal

lib_src/src/multirate_hifi/asrc/src_mrhf_asrc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2016, XMOS Ltd, All rights reserved
1+
// Copyright (c) 2016-2019, XMOS Ltd, All rights reserved
22
// ===========================================================================
33
// ===========================================================================
44
//

0 commit comments

Comments
 (0)