aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJack Koenig2020-11-12 13:10:20 -0800
committerGitHub2020-11-12 13:10:20 -0800
commit06843bd912f79027b1670b03bc1d77203d589bf6 (patch)
tree1e3533b5ca7b7361626ce23c32fb070aeaacbd5e /.travis.yml
parentc7bbb75b8b293d639848abaa9f68121f80947f42 (diff)
Automatically publish SNAPSHOTs on pushes to master (#1955)
Uses sbt-ci-release for automation
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 13 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 0a698ff2..cd88f80e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,6 +3,11 @@ sudo: false
jdk: openjdk8
+branches:
+ only:
+ - master
+ - /^\d+\.\d+\.x$/
+
cache:
directories:
$HOME/.cache/coursier
@@ -25,8 +30,10 @@ before_script:
- if [ $OLDEST_SHARED == $OLDEST_COMMIT ]; then git fetch --unshallow; fi
stages:
- - prepare
- - test
+ - name: prepare
+ - name: test
+ - name: release
+ if: ((branch = master) OR (branch =~ /^\d+\.\d+\.x$/)) AND (type = push) AND (NOT fork)
# We do not use the built-in tests as generated by using multiple Scala
# versions because the cache is not shared between stages with any
@@ -136,3 +143,7 @@ jobs:
script:
- benchmark/scripts/benchmark_cold_compile.py -N 2 --designs regress/ICache.fir --versions HEAD
- benchmark/scripts/find_heap_bound.py -- -cp firrtl*jar firrtl.stage.FirrtlMain -i regress/ICache.fir -o out -X verilog
+ # run ci-release only if previous stages passed
+ - stage: release
+ name: "Publish SNAPSHOT release"
+ script: sbt ci-release