This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
beewm:devel:compiling_and_making_releases [2016/06/08 13:11] – admin | beewm:devel:compiling_and_making_releases [2017/02/01 12:57] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Compiling BeeWM====== | + | ======Compiling BeeWM HEAD====== |
BeeWM uses gradle to compile and test. It is recommended to use Oracle JDK 7 with BeeWM. To set up JDK 7, assign the JAVA_HOME variable, for example: | BeeWM uses gradle to compile and test. It is recommended to use Oracle JDK 7 with BeeWM. To set up JDK 7, assign the JAVA_HOME variable, for example: | ||
Line 11: | Line 11: | ||
./gradlew clean | ./gradlew clean | ||
- | # full compile | + | # sparse |
- | ./gradlew build | + | ./gradlew build -x test -x storageIntegrationTest -x clusterIntegrationTest |
# compile excluding the integration tests (that require a cluster queue setup): | # compile excluding the integration tests (that require a cluster queue setup): | ||
./gradlew build -x storageIntegrationTest -x clusterIntegrationTest | ./gradlew build -x storageIntegrationTest -x clusterIntegrationTest | ||
- | # sparse | + | # full compile |
- | ./gradlew build -x test -x storageIntegrationTest -x clusterIntegrationTest | + | ./gradlew build |
</ | </ | ||
Line 34: | Line 34: | ||
</ | </ | ||
- | ====Compiling | + | ====Checking out a specific (previous) Release==== |
+ | |||
+ | To check out a specific release to compile, check out the tag of the GIT repository: | ||
+ | < | ||
+ | # list available tags: | ||
+ | git tag | ||
+ | |||
+ | # check out a specific tag, for example 0.3.2 | ||
+ | git checkout tags/ | ||
+ | </ | ||
+ | |||
+ | ====Compiling a Release for Deployment==== | ||
< | < | ||
Line 40: | Line 51: | ||
./gradlew clean build distTar | ./gradlew clean build distTar | ||
- | # full recompiled release without integration testing | + | # releases after 0.4.0: |
./gradlew clean build distTar -x storageIntegrationTest -x clusterIntegrationTest | ./gradlew clean build distTar -x storageIntegrationTest -x clusterIntegrationTest | ||
+ | |||
+ | # releases before 0.4.0: full recompiled release without integration testing | ||
+ | ./gradlew clean build distTar -x integrationTest | ||
+ | |||
+ | |||
+ | # find the release files for BeeWM and the BeeWM Webclient in the directories: | ||
+ | ls -la bee-*/ | ||
+ | |||
+ | # store the archive on the server for downloading: | ||
+ | cp -iv bee-*/ | ||
+ | / | ||
+ | sudo chmod 660 / | ||
+ | sudo chown www-mario: | ||
</ | </ | ||