-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from SiftScience/CI-11587-build-integration-te…
…sting-app-into-ci-pipeline Adding the sift-integration test for the sift-java workflow
- Loading branch information
Showing
1 changed file
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,11 @@ commands: | |
done < github_slack | ||
rm github_slack | ||
context: &context | ||
- slack-templates | ||
- slack_Oauth | ||
- Github_Slack_UserMapping | ||
|
||
jobs: | ||
build: | ||
docker: | ||
|
@@ -62,11 +67,49 @@ jobs: | |
- slack/notify: | ||
<<: *slack_notify | ||
|
||
java_integration: | ||
docker: | ||
- image: circleci/openjdk:8-jdk | ||
working_directory: ~/repo | ||
|
||
environment: | ||
TERM: dumb | ||
GRADLE_OPTS: -Dorg.gradle.project.sonatypeUsername=username -Dorg.gradle.project.sonatypePassword=password | ||
|
||
steps: | ||
- checkout | ||
- export_slack_id | ||
- run: | ||
name: Build and packaged sift-java | ||
command: ./gradlew distZip | ||
|
||
- add_ssh_keys: | ||
fingerprints: | ||
- "4c:c7:1d:f2:95:87:3c:f6:61:4e:46:5a:c8:2a:d7:c9" | ||
|
||
- run: | ||
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 -E "^version:" | awk '{print $2}') | ||
git clone [email protected]:SiftScience/sift-java-integration-app.git | ||
cd sift-java-integration-app | ||
unzip -j ../build/distributions/sift-java-${version}.zip -d app/libs/ | ||
- run: | ||
name: Running tests in sift-java-integration-app | ||
command: | | ||
cd sift-java-integration-app | ||
./gradlew test | ||
workflows: | ||
sift-java: | ||
jobs: | ||
- build: | ||
context: | ||
- slack-templates | ||
- slack_Oauth | ||
- Github_Slack_UserMapping | ||
context: *context | ||
- java_integration: | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
context: *context |