File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 12
12
- oraclejdk8
13
13
14
14
script :
15
- - if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
16
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
17
- sbt ++$TRAVIS_SCALA_VERSION "; test; publish";
18
- else
19
- sbt ++$TRAVIS_SCALA_VERSION test;
20
- fi;
21
- else
22
- sbt ++$TRAVIS_SCALA_VERSION test;
23
- fi
15
+ - ./script/travis-deploy.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -ev
3
+
4
+ VERSION=` perl -npe " s/version in ThisBuild\s+:=\s+\" (.*)\" /\1/" version.sbt | sed -e " /^$/d" `
5
+
6
+ # Deploy a snapshot version only for master branch and jdk8
7
+ if [[ " $TRAVIS_JDK_VERSION " == " oraclejdk8" ]]; then
8
+ if [[ " $TRAVIS_PULL_REQUEST " == " false" ]] && [[ " $VERSION " == * SNAPSHOT ]]; then
9
+ sbt ++$TRAVIS_SCALA_VERSION " ; test; publish" ;
10
+ else
11
+ sbt ++$TRAVIS_SCALA_VERSION test ;
12
+ fi ;
13
+ else
14
+ sbt ++$TRAVIS_SCALA_VERSION test ;
15
+ fi ;
You can’t perform that action at this time.
0 commit comments