Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoded sbt version from Travis config #428

Merged
merged 2 commits into from
Feb 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 12 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ language: scala
dist: trusty
jdk:
- oraclejdk8

matrix:
include:
- scala: 2.12.9
env:
- SBT_VERSION=1.3.4
scala:
- 2.12.9

before_install:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
Expand All @@ -19,22 +15,20 @@ install:
- gem install jekyll -v 4

script:
- sbt ++$TRAVIS_SCALA_VERSION ^^$SBT_VERSION clean compile test
- sbt ++$TRAVIS_SCALA_VERSION ^^$SBT_VERSION scripted;
- sbt ++$TRAVIS_SCALA_VERSION clean compile test
- sbt ++$TRAVIS_SCALA_VERSION scripted;

after_success:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
if grep -q "SNAPSHOT" version.sbt; then
sbt ^^$SBT_VERSION publish;
sbt publish;
else
if [ "$SBT_VERSION" = "1.3.4" ]; then
sbt ^^$SBT_VERSION orgUpdateDocFiles;
git reset --hard HEAD;
git clean -f;
git checkout master;
git pull origin master;
sbt ^^$SBT_VERSION release;
sbt ^^$SBT_VERSION docs/publishMicrosite;
fi
sbt orgUpdateDocFiles;
git reset --hard HEAD;
git clean -f;
git checkout master;
git pull origin master;
sbt release;
sbt docs/publishMicrosite;
fi
fi