aboutsummaryrefslogtreecommitdiff
path: root/.run_chisel_tests.sh
blob: dbec894e6e2e405314bee2c62bb81e4ff9aaa852 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# SPDX-License-Identifier: Apache-2.0
set -e

# Use appropriate branches.
# Each stable branch of FIRRTL should have a fixed value for these branches.
CHISEL_BRANCH="master"
TREADLE_BRANCH="master"

# Skip chisel tests if the commit message says to
# Replace ... with .. in TRAVIS_COMMIT_RANGE, see https://github.com/travis-ci/travis-ci/issues/4596
if git log --format=%B --no-merges ${TRAVIS_COMMIT_RANGE/.../..} | grep '\[skip chisel tests\]'; then
  exit 0
else
  sbt $SBT_ARGS publishLocal
  git clone https://github.com/freechipsproject/treadle.git --single-branch -b ${TREADLE_BRANCH} --depth 10
  (cd treadle && sbt $SBT_ARGS publishLocal)
  git clone https://github.com/ucb-bar/chisel3.git --single-branch -b ${CHISEL_BRANCH}
  cd chisel3
  sbt $SBT_ARGS test
fi