Skip to content

Commit

Permalink
updates for build and deploy #145
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed Oct 28, 2019
1 parent 00b987b commit 563c619
Show file tree
Hide file tree
Showing 15 changed files with 927 additions and 173 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ test-output/
/pre-it-logs.zip
/server-logs/
/integration-test-results/
/integration-test-results.zip
/integration-test-results.zip

# Don't import pom backups
**/pom.xml.versionsBackup
67 changes: 67 additions & 0 deletions docs/Build.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
title: Build
---

<PageDescription>
This article outlines the build process from a local machine and from the build server (Travis, GitHub actions).
</PageDescription>

There are two

# Build: GitHub actions

# Build: Travis
The build with [Travis](https://travis-ci.com/IBM/FHIR) is triggered through a `push` or `pull_request` or `cron` event. The `push` is the only event which is enabled in the **IBM FHIR Server** build.


# Build: Local

## Build and Deploy

### examples
- set the version with rc=<number> where the number is version of the release.
``` shell
mvn clean -Drc=1 -Pdeploy-version-rc -f fhir-examples/pom.xml -N
```

- build and deploy
``` shell
mvn clean install javadoc:jar javadoc:test-jar -Pdeploy-bintray,fhir-javadocs deploy -f fhir-examples/pom.xml
```

### tools
- set the version
``` shell
mvn clean -Drc=1 -Pdeploy-version-rc -f fhir-tools/pom.xml -N
```

- build and deploy
``` shell
mvn clean install javadoc:jar javadoc:test-jar -Pdeploy-bintray,fhir-javadocs deploy -f fhir-tools/pom.xml
```

### parent
- set the version
``` shell
mvn clean -Drc=1 -Pdeploy-version-rc -f fhir-parent/pom.xml -N
```

- build and deploy
``` shell
mvn clean install javadoc:jar javadoc:test-jar -Pdeploy-bintray,fhir-javadocs deploy -f fhir-parent/pom.xml
```

* Locally * The local connection to bintray takes around 30-40 minutes to build, test and deploy.



# Tips
If the build appears to randomly stop complaining about a 400 error, the issue might be one of the following:

## 1 Naming of the artifactId might include a space.
The artifactId might have a space in it. `<artifactId>fhir-notification-websocket </artifactId>` convert to `<artifactId>fhir-notification-websocket</artifactId>`

## 2 The BinTray Key might need to be checked.
If you are able to successfully upload, there may be a need to check BinTray via commandline.

curl -v --user <user>:<apiKey> -T /Users/<username>/.m2/repository/com/ibm/fhir/fhir-notification-websocket/4.0.0-rc1-20191027/fhir-notification-websocket-4.0.0-rc1-20191027.pom https://api.bintray.com/maven/ibm-watson-health/ibm-fhir-server-snapshots/fhir-notification-websocket/com/ibm/fhir/fhir-notification-websocket/4.0.0-rc1-20191027/fhir-notification-websocket-4.0.0-rc1-20191027.pom
Empty file removed fhir-coverage-reports/.gitignore
Empty file.
168 changes: 0 additions & 168 deletions fhir-coverage-reports/pom.xml

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Loading

0 comments on commit 563c619

Please sign in to comment.