#!/bin/bash

# Taken + modified from typelevel/cats
# https://github.com/typelevel/cats/blob/a8a7587f558541cbabc5c40053181928b4baf78c/scripts/travis-publish.sh

export publish_cmd="publishLocal"

if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $(cat version.sbt) =~ "-SNAPSHOT" ]]; then
  export publish_cmd="common/publish cats/publish dataset/publish dataframe/publish"
fi

sbt_cmd="sbt ++$TRAVIS_SCALA_VERSION"

test_cmd="$sbt_cmd test"

docs_cmd="$sbt_cmd doc tut"

coverage="$sbt_cmd coverage test && sbt coverageReport && bash <(curl -s https://codecov.io/bash)"

run_cmd="$coverage && $docs_cmd && $test_cmd $publish_cmd"
eval $run_cmd

#!/bin/bash

# Taken + modified from typelevel/cats
# https://github.com/typelevel/cats/blob/a8a7587f558541cbabc5c40053181928b4baf78c/scripts/travis-publish.sh

export publish_cmd="publishLocal"

# if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $(cat version.sbt) =~ "-SNAPSHOT" ]]; then
#   export publish_cmd="common/publish cats/publish dataset/publish dataframe/publish"
# fi

sbt_cmd="sbt ++$TRAVIS_SCALA_VERSION"

test_cmd="$sbt_cmd test"

docs_cmd="$sbt_cmd doc tut"

coverage="$sbt_cmd coverage test && sbt coverageReport && bash <(curl -s https://codecov.io/bash)"

run_cmd="$coverage && $docs_cmd && $test_cmd $publish_cmd"
eval $run_cmd

Disable publishing of SNAPSHOT builds
Disable publishing of SNAPSHOT builds

I'm not sure they ever worked, let's get some green on the README :green_apple:
