Skip to content

Commit dbe24ca

Browse files
committed
BI-417 - Add integration tests to upload and download SpecFiles
1 parent bdf1df1 commit dbe24ca

File tree

206 files changed

+2465
-8008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+2465
-8008
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ build-info.ipr
1515
build-info.iws
1616
atlassian-*.xml
1717
/.nb-gradle/private/
18-
/itest/src/test/resources/org/jfrog/build/cache
18+
/itest/src/test/resources/org/jfrog/build/cache
19+
/build-info-extractor/src/test/resources/artifactory-bi.properties

Diff for: README.md

+25-10
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,32 @@
33
Build Info is Artifactory's open integration layer for the CI servers and build tools.
44
The build information is sent to Artifactory in json format.
55

6-
## To build the project (with gradle 0.9.2 or above)
7-
```console
8-
> gradle -S build
6+
## Building and Testing the Sources
97

10-
or with the gradle wrapper in Unix
11-
12-
> ./gradlew -S build
13-
14-
and the gradle wrapper in Windows
15-
16-
> gradlew.bat -S build
8+
The code is built using Gradle and includes integration tests.<br/>
9+
It must run using JDK 7 and Gradle 2.4. If you are using different gradle version you can use the provided gradle wrapper.<br/>
10+
In order to run tests the following environment variable must be provide:
11+
```
12+
export BITESTS_ARTIFACTORY_URL='http://localhost:8081/artifactory'
13+
export BITESTS_ARTIFACTORY_USERNAME=admin
14+
export BITESTS_ARTIFACTORY_PASSWORD=password
15+
export BITESTS_ARTIFACTORY_REPO=tests
16+
```
17+
To build the code using the gradle wrapper in Unix run:
18+
```
19+
> ./gradlew clean build
20+
```
21+
To build the code using the gradle wrapper in Windows run:
22+
```
23+
> gradlew clean build
24+
```
25+
To build the code using the environment gradle run:
26+
```
27+
> gradle clean build
28+
```
29+
To build the code without tests, add to the "clean build" command the flag "-x test", for example:
30+
```
31+
> ./gradlew clean build -x test
1732
```
1833
## Build Info json format
1934

Diff for: build-info-extractor-gradle/src/test/groovy/org/jfrog/build/ArtifactoryConfigurationsPluginTest.groovy

-118
This file was deleted.

Diff for: build-info-extractor-gradle/src/test/groovy/org/jfrog/build/ArtifactoryPublicationsPluginTest.groovy

-121
This file was deleted.

Diff for: build-info-extractor-gradle/src/test/groovy/org/jfrog/build/PluginTestBase.groovy

-82
This file was deleted.

0 commit comments

Comments
 (0)