Skip to content

Commit 72ffd49

Browse files
authored
Merge pull request #7 from samchesney/feature/jenkins
Add Jenkins Pipeline
2 parents 84df525 + 91f6d0f commit 72ffd49

11 files changed

Lines changed: 64 additions & 1 deletion

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
**/pdf/*
1313
**/html/*
1414
**/.settings/*
15+
**/.venv/**
1516

1617
# waf build files
1718
.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: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@Library('xmos_jenkins_shared_library@develop') _
2+
3+
getApproval()
4+
5+
pipeline {
6+
agent {
7+
label 'x86_64&&brew'
8+
}
9+
environment {
10+
REPO = 'lib_xassert'
11+
VIEW = "${env.JOB_NAME.contains('PR-') ? REPO+'_'+env.CHANGE_TARGET : REPO+'_'+env.BRANCH_NAME}"
12+
}
13+
options {
14+
skipDefaultCheckout()
15+
}
16+
stages {
17+
stage('Get view') {
18+
steps {
19+
xcorePrepareSandbox("${VIEW}", "${REPO}")
20+
}
21+
}
22+
stage('Library checks') {
23+
steps {
24+
xcoreLibraryChecks("${REPO}")
25+
}
26+
}
27+
stage('Tests') {
28+
steps {
29+
runXmostest("${REPO}", 'tests')
30+
}
31+
}
32+
}
33+
post {
34+
success {
35+
updateViewfiles()
36+
}
37+
cleanup {
38+
cleanWs()
39+
}
40+
}
41+
}

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) 2014-2018, XMOS, All rights reserved.
3+
Copyright (c) 2014-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'

tests/runtests.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) 2015-2019, XMOS Ltd, All rights reserved
23
import xmostest
34

45
if __name__ == "__main__":

tests/test_assert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) 2015-2019, XMOS Ltd, All rights reserved
12
import xmostest
23

34
def runtest():

tests/test_assert_unit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) 2015-2019, XMOS Ltd, All rights reserved
12
import xmostest
23

34
def runtest():

tests/test_fail.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) 2015-2019, XMOS Ltd, All rights reserved
12
import xmostest
23

34
def runtest():

0 commit comments

Comments
 (0)