Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Jenkinsfile for Librecores CI in mor1kx #84

Merged
merged 3 commits into from Jul 3, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -0,0 +1,141 @@
pipeline {
agent any

stages {
stage("Docker pull") {
steps {
sh 'docker pull librecores/librecores-ci:0.2.0'
sh 'docker images'
}
}

stage("Docker run") {
parallel {
stage("verilator") {
environment{
JOB = 'verilator'
}
steps {
dockerrun()
}
}
stage("testing 1") {
environment {
JOB = 'or1k-tests'
SIM = 'icarus'
PIPELINE = 'CAPPUCCINO'
EXPECTED_FAILURES="or1k-cy"
}
steps {
dockerrun()
}
}
stage("testing 2") {
environment {
JOB = 'or1k-tests'
SIM = 'icarus'
PIPELINE = 'CAPPUCCINO'
EXPECTED_FAILURES="or1k-cy"
EXTRA_CORE_ARGS="--feature_dmmu NONE"
}
steps {
dockerrun()
}
}
stage("testing 3") {
environment {
JOB = 'or1k-tests'
SIM = 'icarus'
PIPELINE = 'CAPPUCCINO'
EXPECTED_FAILURES = "or1k-cy or1k-dsxinsn"
EXTRA_CORE_ARGS = "--feature_immu NONE"
}
steps {
dockerrun()
}
}
stage("testing 4") {
environment {
JOB = 'or1k-tests'
SIM = 'icarus'
PIPELINE = 'CAPPUCCINO'
EXPECTED_FAILURES = "or1k-cy"
EXTRA_CORE_ARGS = "--feature_datacache NONE"
}
steps {
dockerrun()
}
}
stage("testing 5") {
environment {
JOB = 'or1k-tests'
SIM = 'icarus'
PIPELINE = 'CAPPUCCINO'
EXPECTED_FAILURES = "or1k-cy"
EXTRA_CORE_ARGS = "--feature_instructioncache NONE"
}
steps {
dockerrun()
}
}
stage("testing 6") {
environment {
JOB = 'or1k-tests'
SIM = 'icarus'
PIPELINE = 'CAPPUCCINO'
EXPECTED_FAILURES = "or1k-cy"
EXTRA_CORE_ARGS = "--feature_debugunit NONE"
}
steps {
dockerrun()
}
}
stage("testing 7") {
environment {
JOB = 'or1k-tests'
SIM = 'icarus'
PIPELINE = 'CAPPUCCINO'
EXPECTED_FAILURES = "or1k-cy or1k-cmov"
EXTRA_CORE_ARGS = "--feature_cmov NONE"
}
steps {
dockerrun()
}
}
stage("testing 8") {
environment {
JOB = 'or1k-tests'
SIM = 'icarus'
PIPELINE = 'CAPPUCCINO'
EXPECTED_FAILURES = "or1k-cy or1k-ext"
EXTRA_CORE_ARGS = "--feature_ext NONE"
}
steps {
dockerrun()
}
}
stage("testing 9") {
environment {
JOB = 'or1k-tests'
SIM = 'icarus'
PIPELINE = 'ESPRESSO'
}
steps {
script {
//TODO: remove try/catch once the failing test is fixed (https://github.com/openrisc/mor1kx/issues/71)
try {
dockerrun()
} catch (Exception e) {
echo "Allowed failure"
}
}
}
}
}
}
}
}

void dockerrun() {
sh 'docker run --rm -v $(pwd):/src -e "JOB=$JOB" -e "SIM=$SIM" -e "PIPELINE=$PIPELINE" -e "EXPECTED_FAILURES=$EXPECTED_FAILURES" -e "EXTRA_CORE_ARGS=$EXTRA_CORE_ARGS" librecores/librecores-ci /src/.travis/test.sh'
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.