Skip to content

Commit

Permalink
Merge pull request #93 from SiftScience/CI-11587-build-integration-te…
Browse files Browse the repository at this point in the history
…sting-app-into-ci-pipeline

Adding the sift-integration test for the sift-java workflow
  • Loading branch information
VinayakGadad authored Jun 29, 2023
2 parents 88ac28b + 19726c8 commit 54eb0a1
Showing 1 changed file with 47 additions and 4 deletions.
51 changes: 47 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ commands:
done < github_slack
rm github_slack
context: &context
- slack-templates
- slack_Oauth
- Github_Slack_UserMapping

jobs:
build:
docker:
Expand Down Expand Up @@ -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

0 comments on commit 54eb0a1

Please sign in to comment.