aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackkoenig2016-02-25 14:20:50 -0800
committerjackkoenig2016-02-25 15:53:37 -0800
commit7f42089cb681d29c3767f199216e0f2cabf34017 (patch)
tree38b8ebc5cb1b165f87266bbbdbc97946faee916e
parent36b3740b8ea6b460b7c61327f7c28960b32fba29 (diff)
Travis updates: add Verilator and Chisel3 tests
-rw-r--r--.install_verilator.sh18
-rw-r--r--.travis.yml23
2 files changed, 35 insertions, 6 deletions
diff --git a/.install_verilator.sh b/.install_verilator.sh
new file mode 100644
index 00000000..84cf543e
--- /dev/null
+++ b/.install_verilator.sh
@@ -0,0 +1,18 @@
+set -e
+# Install Verilator (http://www.veripool.org/projects/verilator/wiki/Installing)
+if [ ! -f $INSTALL_DIR/bin/verilator ]; then
+ mkdir -p $INSTALL_DIR
+ git clone http://git.veripool.org/git/verilator
+ unset VERILATOR_ROOT
+ cd verilator
+ git pull
+ git checkout verilator_3_880
+ autoconf
+ ./configure --prefix=$INSTALL_DIR
+ make
+ make install
+ export VERILATOR_ROOT=$INSTALL_DIR
+ # Fix verilator for local install (http://www.lowrisc.org/docs/untether-v0.2/verilator/)
+ ln -s $VERILATOR_ROOT/share/verilator/include $VERILATOR_ROOT/include
+ ln -s $VERILATOR_ROOT/share/verilator/bin/verilator_includer $VERILATOR_ROOT/bin/verilator_includer
+fi
diff --git a/.travis.yml b/.travis.yml
index 90f05569..e58344d9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,19 +6,30 @@ sudo: false
cache:
directories:
$HOME/.ivy2
+ $INSTALL_DIR
git:
depth: 3
-branches:
- only:
- - travis
- - master
+sbt_args: -Dsbt.log.noformat=true
env:
global:
- SBT_OPTS=-Dsbt.log.noformat=true
+ INSTALL_DIR=$TRAVIS_BUILD_DIR/install
+ VERILATOR_ROOT=$INSTALL_DIR
+ PATH=$PATH:$VERILATOR_ROOT/bin:$TRAVIS_BUILD_DIR/utils/bin
+
+install:
+ # Grab Chisel 3
+ - git clone https://github.com/ucb-bar/chisel3.git
+ # Install Verilator (if not found in cache)
+ - bash .install_verilator.sh
script:
- - sbt $SBP_OPTS clean test
+ # FIRRTL Tests
+ - cd $TRAVIS_BUILD_DIR
+ - sbt clean test
- make clean build-scala regress
+ # Chisel 3 Tests
+ - cd chisel3
+ - sbt clean test