You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the following commands to build the code, the entire testing suite is also executed. See the *Testing* section for configuration instructions prior to running the tests.
22
22
23
23
To build the code using the gradle wrapper in Unix run:
24
-
```
25
-
> ./gradlew clean build
24
+
```bash
25
+
./gradlew clean build
26
26
```
27
27
To build the code using the gradle wrapper in Windows run:
28
-
```
29
-
> gradlew clean build
28
+
```bash
29
+
gradlew clean build
30
30
```
31
31
To build the code using the environment gradle run:
32
-
```
33
-
> gradle clean build
32
+
```bash
33
+
gradle clean build
34
34
```
35
35
To build the code without running the tests, add to the "clean build" command the "-x test" option, for example:
* Add npm executable to the system search path (PATH environment variable).
63
-
```
64
-
> ./gradlew clean build-info-extractor-npm:test
63
+
```bash
64
+
./gradlew clean build-info-extractor-npm:test
65
65
```
66
66
67
67
#### Go tests
68
68
* Add Go executable to the system search path (PATH environment variable).
69
69
* Go v1.14 or above is required.
70
-
```
71
-
> ./gradlew clean build-info-extractor-go:test
70
+
```bash
71
+
./gradlew clean build-info-extractor-go:test
72
72
```
73
73
74
74
#### Pip tests
75
75
* Add Python and pip executables to the system search path (PATH environment variable).
76
76
* Pip tests must run inside a clean pip-environment. Create a virtual environment and provide its path using the 'BITESTS_ARTIFACTORY_PIP_ENV' variable.
77
77
When running on a Windows machine, provide the path to the 'Scripts' directory.
78
78
When running on a unix machine, provide the path to the 'bin' directory.
* Add Nuget & Dotnet executable to the system search path (PATH environment variable).
87
-
```
88
-
> ./gradlew clean build-info-extractor-nuget:test
87
+
```bash
88
+
./gradlew clean build-info-extractor-nuget:test
89
89
```
90
90
91
91
#### Docker tests
@@ -96,7 +96,7 @@ When running on a unix machine, provide the path to the 'bin' directory.
96
96
* docker-virtual (contains both docker-local & docker-remote repositories)
97
97
* In addition to the general environment variables required for running the tests, you must set the following environment variables, required for the docker tests:
98
98
* Replace `localhost:8081` prefix with your docker registry domain if needed.
0 commit comments