mirror of https://github.com/sbt/sbt.git
Simplify Travis script
This commit is contained in:
parent
c481217f77
commit
286ef4640e
|
|
@ -27,30 +27,17 @@ function isMasterOrDevelop() {
|
||||||
[ "$TRAVIS_BRANCH" = "master" -o "$TRAVIS_BRANCH" = "develop" ]
|
[ "$TRAVIS_BRANCH" = "master" -o "$TRAVIS_BRANCH" = "develop" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
# web sub-project doesn't compile in 2.10 (no scalajs-react)
|
|
||||||
if echo "$TRAVIS_SCALA_VERSION" | grep -q "^2\.10"; then
|
|
||||||
IS_210=1
|
|
||||||
SBT_COMMANDS="bootstrap/compile coreJVM/compile coreJS/compile cache/compile web/compile testsJVM/test testsJS/test"
|
|
||||||
else
|
|
||||||
IS_210=0
|
|
||||||
SBT_COMMANDS="compile test"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Required for ~/.ivy2/local repo tests
|
# Required for ~/.ivy2/local repo tests
|
||||||
~/sbt coreJVM/publish-local
|
~/sbt coreJVM/publish-local
|
||||||
|
|
||||||
# TODO Add coverage once https://github.com/scoverage/sbt-scoverage/issues/111 is fixed
|
# TODO Add coverage once https://github.com/scoverage/sbt-scoverage/issues/111 is fixed
|
||||||
|
|
||||||
PUSH_GHPAGES=0
|
SBT_COMMANDS="compile test"
|
||||||
if isNotPr && publish && isMaster; then
|
if isNotPr && publish && isMaster; then
|
||||||
SBT_COMMANDS="$SBT_COMMANDS coreJVM/publish coreJS/publish cache/publish"
|
SBT_COMMANDS="$SBT_COMMANDS publish"
|
||||||
if [ "$IS_210" = 1 ]; then
|
|
||||||
SBT_COMMANDS="$SBT_COMMANDS plugin/publish"
|
|
||||||
else
|
|
||||||
SBT_COMMANDS="$SBT_COMMANDS cli/publish"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PUSH_GHPAGES=0
|
||||||
if isNotPr && publish && isMasterOrDevelop; then
|
if isNotPr && publish && isMasterOrDevelop; then
|
||||||
if echo "$TRAVIS_SCALA_VERSION" | grep -q "^2\.11"; then
|
if echo "$TRAVIS_SCALA_VERSION" | grep -q "^2\.11"; then
|
||||||
PUSH_GHPAGES=1
|
PUSH_GHPAGES=1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue