aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack2017-06-28 19:14:39 -0700
committerJack2017-06-29 14:47:46 -0700
commitf17ba552bb0dc562ec77b23d0ce8b8e27454b92e (patch)
tree1245bf6183d621558ff75a70e10ae12aa2f69e48
parent905cac96053caf4b6c87ac0b9c8addf313d1085c (diff)
[Travis] Use Build Stages
-rw-r--r--.travis.yml28
1 files changed, 17 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index bafafa9c..9b667a72 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,14 +19,20 @@ env:
VERILATOR_ROOT=$INSTALL_DIR
PATH=$PATH:$VERILATOR_ROOT/bin:$TRAVIS_BUILD_DIR/utils/bin
-install:
- # Install Verilator (if not found in cache)
- - bash .install_verilator.sh
-
-script:
- # FIRRTL Tests
- - verilator --version
- - cd $TRAVIS_BUILD_DIR
- - sbt clean test assembly publish-local
- # Chisel 3 Tests
- - bash .run_chisel_tests.sh
+jobs:
+ include:
+ - stage: prepare cache-verilator
+ script:
+ - bash .install_verilator.sh
+ - verilator --version
+ - &test
+ stage: Test
+ script:
+ # FIRRTL Tests
+ - cd $TRAVIS_BUILD_DIR
+ - sbt clean test
+ - <<: *test
+ script:
+ - cd $TRAVIS_BUILD_DIR
+ - sbt clean assembly publish-local
+ - bash .run_chisel_tests.sh