blob: fb45b3930e6e71615eaeea1a1ade48b59b9f0127 [file] [log] [blame] [view]
Alexander Afanasyev44cac2a2016-01-28 11:18:16 -08001# Developer Notes
2
3## Prerequisites
4
5- [Gradle build system version 2.10 or later](http://gradle.org/)
6
7## Compile
8
9To compile:
10
11 gradle assemble
12
13To build documentation:
14
15 gradle javadoc
16
17To build all artifacts and publish to a local maven repository:
18
19 gradle install
20
21To publish to maven repository `signing.keyId`, `signing.password`, `signing.secretKeyRingFile`,
22`ossrhUsername`, and `ossrhPassword` variables need to be defined in project-specific or
23user-specific `gradle.properties` file. After the variables defined, run the following command
24to build, sign, and upload archives to maven:
25
26 gradle uploadArchives
27
28To get list of other targets, use `gradle tasks`.
29
30## Tests
31
32The package contains two types of tests: unit and integration. The integration tests require
33NFD instance to be running locally.
34
35### Unit Tests
36
37To run unit tests:
38
39 gradle test
40
41To run a specific test, use `-Dtest.single=<test-name>` command-line option. For example,
42
43 gradle -Dtest.single=ControlResponseTest test
44
45### Integration Tests
46
47To run integration tests
48
49 gradle integrationTest