Skip to content

Commit

Permalink
Merge pull request #53 from optimsoc/lcci
Browse files Browse the repository at this point in the history
LibreCores CI
  • Loading branch information
wallento committed Apr 16, 2017
2 parents c311071 + 7507d2b commit 41979c9
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
50 changes: 50 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
node('fpga-nexys4ddr') {
stage("Checkout") {
checkout scm
}

stage('Simulation Build') {
sh_with_modules (
modules: ["eda/xilinx/vivado/2016.4",
"eda/fusesoc/1.6.1",
"eda/verilator/3.900",
"compilers/openrisc/gcc/5.3.0-newlib2.3.0-1",
"base/python/3.5"],
command: 'make BUILD_DOCS=no BUILD_EXAMPLES_FPGA=no'
)
}
stage('Simulation Tests') {
sh_with_modules (
modules: ["eda/xilinx/vivado/2016.4",
"eda/fusesoc/1.6.1",
"eda/verilator/3.900",
"compilers/openrisc/gcc/5.3.0-newlib2.3.0-1",
"base/python/3.5"],
command: 'source objdir/dist/optimsoc-environment.sh; pytest -s -v test/systemtest/test_tutorial.py::TestTutorial'
)
}
stage('FPGA Build') {
sh_with_modules (
modules: ["eda/xilinx/vivado/2016.4",
"eda/fusesoc/1.6.1",
"eda/verilator/3.900",
"compilers/openrisc/gcc/5.3.0-newlib2.3.0-1",
"base/python/3.5"],
command: 'make BUILD_DOCS=no'
)
}
stage('FPGA Tests') {
sh "echo 'boards:' > localconf.yaml"
sh "echo ' nexys4ddr:' >> localconf.yaml"
sh "echo ' device: /dev/ttyUSB1' >> localconf.yaml"

sh_with_modules (
modules: ["eda/xilinx/vivado/2016.4",
"eda/fusesoc/1.6.1",
"eda/verilator/3.900",
"compilers/openrisc/gcc/5.3.0-newlib2.3.0-1",
"base/python/3.5"],
command: 'source objdir/dist/optimsoc-environment.sh; export OPTIMSOC_TEST_LOCALCONF=$PWD/localconf.yaml; cat $OPTIMSOC_TEST_LOCALCONF; pytest -s -v test/systemtest/test_tutorial.py::TestTutorialFpga'
)
}
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ contains the framework sources of hardware modules, software
libraries, tools etc. While using the release bundles may better suite
you in the beginning, this is the resource for OpTiMSoC development.

Current build status: [![Build Status](https://travis-ci.org/optimsoc/sources.svg?branch=master)](https://travis-ci.org/optimsoc/sources)
Current build status in Travis: [![Build Status](https://travis-ci.org/optimsoc/sources.svg?branch=master)](https://travis-ci.org/optimsoc/sources)

Current build status in LibreCores CI: [![Build Status](https://ci.librecores.org/buildStatus/icon?job=Projects/OpTiMSoC/lcci)](https://ci.librecores.org/job/Projects/job/OpTiMSoC/job/lcci/)

0 comments on commit 41979c9

Please sign in to comment.