-
Notifications
You must be signed in to change notification settings - Fork 8
Adding the sift-integration test for the sift-java workflow #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding the sift-integration test for the sift-java workflow #93
Conversation
5920d8b to
17d250b
Compare
.circleci/config.yml
Outdated
| export GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa_4cc71df295873cf6614e465ac82ad7c9' | ||
| git clone git@github.com:SiftScience/sift-java-integration-app.git | ||
| cd sift-java-integration-app | ||
| unzip -j ../build/distributions/sift-java-3.10.0.zip -d app/libs/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build shouldn't include hard-coded version of the package that it is building.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it to dynamically pick the versions from gradle properties.
.circleci/config.yml
Outdated
| name: Clone sift-java-integration-app and extract sift-java | ||
| command: | | ||
| export GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa_4cc71df295873cf6614e465ac82ad7c9' | ||
| version=$(./gradlew properties -q | grep "version:" | awk '{print $2}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest editing the grep to use regex and match ^version: . This way, you won't get multiple matches if there are other property names that have version as a suffix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I ran the ./gradlew properties -q it had only 1 version variable. It makes sense if there are multiple matches.
I have updated the grep accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a small change to make the build more robust. Have to think about future-proofing where you can.
mpierotti-sift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
btusakul-sift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Purpose:
Technical overview:
Testing plan:
Deployment plan: