| title | Setup |
|---|---|
| description | How to setup your environment to test the nf-co2footprint plugin locally |
To test with Nextflow for development purpose:
-
Clone the Nextflow repo into a sibling directory
cd .. && git clone https://github.com/nextflow-io/nextflow cd nextflow && ./gradlew exportClasspath
-
Append the following line to the
settings.gradlein this project:includeBuild('../nextflow') -
Compile the plugin code
./gradlew compileGroovy
-
Run nextflow with this command:
./launch.sh run -plugins nf-co2footprint <script/pipeline name> [pipeline params]
The plugin can be tested without using a local Nextflow build using the following steps:
!!! warning
This will install the compiled plugin code into the `$NXF_PLUGINS_DIR` directory (default: `${HOME}/.nextflow/plugins`). If a plugin with the same version (as specified in `nf-co2footprint/build.gradle`) already exists in this directory, it will be overwritten.
-
Compile and install the plugin code
make install
-
Run nextflow with this command, specifying the plugin version:
nextflow run <script/pipeline name> [pipeline params] -plugins nf-co2footprint@1.3.0
To compile and run the tests use the following command:
make testThe docs are generated using Material for MkDocs. To change the docs, edit the files in the docs/ folder and run the following command to generate the docs (after installing mkdocs via pip install mkdocs-material):
mkdocs serveTo preview the docs, open the URL provided by mkdocs in your browser.