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 1 commit
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,60 @@
pipeline {
agent any

environment{
JOB= '$JOB'
SIM= '$SIM'
PIPELINE= '$PIPELINE'
EXPECTED_FAILURES= '$EXPECTED_FAILURES'
EXTRA_CORE_ARGS= '$EXTRA_CORE_ARGS'
}
stages {
stage('Build') {
steps {
sh 'docker pull librecores/librecores-ci:0.2.0'
sh 'docker images'
}
}
stage('Run') {
steps {
sh 'docker run --rm -v $(pwd):/src -e JOB -e SIM -e PIPELINE -e EXPECTED_FAILURES -e EXTRA_CORE_ARGS librecores/librecores-ci /src/.travis/test.sh'
}
}
stage('run-parallel-jobs') {
steps {
parallel(

This comment has been minimized.

Copy link
@oleg-nenashev

oleg-nenashev Jun 19, 2019

We could have definitely optimize it if we had native support of config matrixes in Declarative pipeline, but it s still in progress

This comment has been minimized.

Copy link
@Nancy-Chauhan

Nancy-Chauhan Jun 19, 2019

Author Contributor

Has it been tested locally @Nancy-Chauhan ? I can enable CI for your local branch on ci.librecores.org f you grant @librecores-ci-bot Write access to your repo

Yes , I have tested locally @oleg-nenashev , still need to do changes and I have send invite to librecores-ci-bot for write access .

verilator:{
export $JOB='verilator'
}
testing:{
export $JOB='or1k-tests' $SIM='icarus' $PIPELINE='CAPPUCCINO' $EXPECTED_FAILURES="or1k-cy"
},
testing:{
export $JOB='or1k-tests' $SIM='icarus' $PIPELINE='CAPPUCCINO' $EXPECTED_FAILURES="or1k-cy" $EXTRA_CORE_ARGS="--feature_dmmu NONE"
}
testing:{
export $JOB='or1k-tests' $SIM='icarus' $PIPELINE='CAPPUCCINO' $EXPECTED_FAILURES="or1k-cy or1k-dsxinsn" $EXTRA_CORE_ARGS="--feature_immu NONE"
}
testing:{
export $JOB='or1k-tests' $SIM='icarus' $PIPELINE='CAPPUCCINO' $EXPECTED_FAILURES="or1k-cy" $EXTRA_CORE_ARGS="--feature_datacache NONE"
}
testing:{
export $JOB='or1k-tests' $SIM='icarus' $PIPELINE='CAPPUCCINO' $EXPECTED_FAILURES="or1k-cy" $EXTRA_CORE_ARGS="--feature_instructioncache NONE"
}
testing:{
export $JOB='or1k-tests' $SIM='icarus' $PIPELINE='CAPPUCCINO' $EXPECTED_FAILURES="or1k-cy" $EXTRA_CORE_ARGS="--feature_debugunit NONE"
}
testing:{
export $JOB='or1k-tests' $SIM='icarus' $PIPELINE='CAPPUCCINO' $EXPECTED_FAILURES="or1k-cy or1k-cmov" EXTRA_CORE_ARGS="--feature_cmov NONE"
}
testing:{
export $JOB='or1k-tests' $SIM='icarus' $PIPELINE='CAPPUCCINO' $EXPECTED_FAILURES="or1k-cy or1k-ext" EXTRA_CORE_ARGS="--feature_ext NONE"
}
testing:{
export $JOB='or1k-tests' $SIM='icarus' $PIPELINE='ESPRESSO'
}
)
}
}
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.