Clone the repository.
$ git clone [email protected]:ScorexFoundation/sigmastate-interpreter.git
$ cd sigmastate-interpreter
$ sbt test
Then you can compile the library with SBT and run tests.
$ sbt
sbt:sigma-state> compile
sbt:sigma-state> test
By default SBT uses Scala 2.12 for compilation and running tests. To compile for Scala 2.13 use the following commands:
$ sbt
sbt:sigma-state> ++2.13.11
sbt:sigma-state> compile
sbt:sigma-state> test
You can also run SBT commands for all Scala versions at once:
$ sbt
sbt:sigma-state> +compile
sbt:sigma-state> +test
To run specific test suite use the following command:
sbt:sigma-state> testOnly <full test class name>
Follow instructions to set up GPG key. You will need:
- create a GPG key pair;
- publish your public key to a public key server;
Try to login to Nexus Repository Manager with your credentials here
Follow instructions to set up Sonatype with SBT. You will also need:
This can be done manually or automatically by Github Actions.
To publish release to Sonatype, use the following:
$sbt
sbt:sigma-state> +publishSigned
sbt:sigma-state> sonatypeBundleRelease
To publish release version to Sonatype, do the following:
- make a tag with version number
vX.Y.Z
(used bysbt-dynver
to setversion
key); - use the new tag to make a Github release, which triggers
release.yml
workflow and publishes release version to Sonatype;