Clone the repository.
$ git clone git@github.com:ScorexFoundation/sigmastate-interpreter.git
$ cd sigmastate-interpreter
$ sbt testThen you can compile the library with SBT and run tests.
$ sbt
sbt:sigma-state> compile
sbt:sigma-state> testBy 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.16
sbt:sigma-state> compile
sbt:sigma-state> testYou can also run SBT commands for all Scala versions at once:
$ sbt
sbt:sigma-state> +compile
sbt:sigma-state> +testTo 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-dynverto setversionkey); - use the new tag to make a Github release, which triggers
release.ymlworkflow and publishes release version to Sonatype;