Skip to content

Commit

Permalink
reading test data files from github repo instead of cloud storage (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
agamkrbit authored Aug 30, 2023
1 parent b2a5de1 commit 7e36a90
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ target/
out/
src/test/resources/assignment-v2
src/test/resources/rac-experiments-v*.json
.DS_Store
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,20 @@ build: test-data

## test-data
testDataDir := src/test/resources/
tempDir := ${testDataDir}/temp
gitDataDir := ${tempDir}/sdk-test-data
branchName := main
githubRepoLink := https://github.com/Eppo-exp/sdk-test-data.git
.PHONY: test-data
test-data:
rm -rf $(testDataDir)
mkdir -p $(testDataDir)
gsutil cp gs://sdk-test-data/rac-experiments-v3.json $(testDataDir)
gsutil cp -r gs://sdk-test-data/assignment-v2 $(testDataDir)
mkdir -p $(tempDir)
cd ${tempDir} \
&& git clone -b ${branchName} --depth 1 --single-branch ${githubRepoLink} \
&& rm -rf RepoName/.git/
cp ${gitDataDir}/rac-experiments-v3.json ${testDataDir}
cp -r ${gitDataDir}/assignment-v2 ${testDataDir}
rm -rf ${tempDir}

.PHONY: test
test: test-data build
Expand Down

0 comments on commit 7e36a90

Please sign in to comment.