Skip to content

Commit

Permalink
Decouple Core and Telemetry Release (#131)
Browse files Browse the repository at this point in the history
* variable check

- create and check variables and how they work within CircleCi

* Split core + telem

- split core and telem gradle commands

* Add true

- add 'true' comparisons

* Reformat if statements

- remvoe 'echo' from if statments
- add parentheses around variables

* Clean-up code

- remove unused code attempts
- revert to using master for publishing
  • Loading branch information
electrostat committed May 2, 2018
1 parent 12d7a0a commit 5f74fee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
environment:
BUILDTYPE: Release
IS_LOCAL_DEVELOPMENT: false
OK_TO_RELEASE_CORE: true
OK_TO_RELEASE_TELEM: true
steps:
- checkout
- run:
Expand All @@ -95,7 +97,12 @@ jobs:
name: Publish to Maven Central
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
make publish ;
if [ "$OK_TO_RELEASE_CORE" == true ]; then
make publish-core ;
fi
if [ "$OK_TO_RELEASE_TELEM" == true ]; then
make publish-telem ;
fi
fi
- store_artifacts:
path: app/build/reports
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ javadoc:
./gradlew :libcore:javadocrelease
./gradlew :libtelemetry:javadocrelease

publish:
publish-core:
export IS_LOCAL_DEVELOPMENT=false; ./gradlew :libcore:uploadArchives

publish-telem:
export IS_LOCAL_DEVELOPMENT=false; ./gradlew :libtelemetry:uploadArchives

publish-local:
Expand Down

0 comments on commit 5f74fee

Please sign in to comment.