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

skip-tests not working with +test #259

Open
jbwheatley opened this issue Dec 10, 2019 · 1 comment
Open

skip-tests not working with +test #259

jbwheatley opened this issue Dec 10, 2019 · 1 comment

Comments

@jbwheatley
Copy link

I have the following release process for my project that cross-compiles in 2.12.10 and 2.13.1

releaseProcess := Seq[ReleaseStep](
        checkSnapshotDependencies,
        inquireVersions,
        runClean,
        releaseStepCommandAndRemaining("+test"),
        setReleaseVersion,
        commitReleaseVersion,
        tagRelease,
        releaseStepCommandAndRemaining("+publish"),
        setNextVersion,
        commitNextVersion,
        pushChanges
      )

I would like to be able to run sbt release skip-tests, but the tests are still running.

@jbwheatley
Copy link
Author

the solution I'm using is using this instead:

lazy val crossRunTest: ReleaseStep = ReleaseStep(
  action = { st: State =>
    if (!st.get(skipTests).getOrElse(false)) {
      releaseStepCommandAndRemaining("+test")(st)
    } else st
  },
  enableCrossBuild = true
)

I will make a PR to add

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant