From f4c4b8713f6ea8698fb7246b03e6ae8c159c2da0 Mon Sep 17 00:00:00 2001 From: Carl Beekhuizen Date: Mon, 30 Aug 2021 10:04:27 +0200 Subject: [PATCH] CI checks binaries in dedicated folder --- .circleci/config.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 27dcac0..c13e126 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -129,6 +129,11 @@ jobs: export PYTHONHASHSEED=42 export CIRCLE_SHORT_SHA1=$(eval echo $CIRCLE_SHA1 | cut -c -7) export BUILD_FILE_NAME=eth2deposit-cli-${CIRCLE_SHORT_SHA1}-linux-amd64; + export TEST_FOLDER_NAME=TMP_TEST_FOLDER + mkdir ${TEST_FOLDER_NAME} + cp ${BUILD_FILE_NAME} ${TEST_FOLDER_NAME} + cp test_binary_script.py ${TEST_FOLDER_NAME} + cd ${TEST_FOLDER_NAME} python test_binary_script.py ./${BUILD_FILE_NAME}; - run: name: Compress the file @@ -166,6 +171,11 @@ jobs: $PYTHONHASHSEED = 42 $CIRCLE_SHORT_SHA1 = $env:CIRCLE_SHA1.substring(0,7) $BUILD_FILE_NAME = "eth2deposit-cli-" + $CIRCLE_SHORT_SHA1 + "-windows-amd64" + $TEST_FOLDER_NAME = "TMP_TEST_FOLDER" + mkdir ${TEST_FOLDER_NAME} + copy ${BUILD_FILE_NAME} ${TEST_FOLDER_NAME} + copy test_binary_script.py ${TEST_FOLDER_NAME} + cd ${TEST_FOLDER_NAME} python test_binary_script.py .\${BUILD_FILE_NAME} - run: name: Compress the file @@ -207,6 +217,11 @@ jobs: export PYTHONHASHSEED=42 export CIRCLE_SHORT_SHA1=$(eval echo $CIRCLE_SHA1 | cut -c -7) export BUILD_FILE_NAME=eth2deposit-cli-${CIRCLE_SHORT_SHA1}-darwin-amd64; + export TEST_FOLDER_NAME=TMP_TEST_FOLDER + mkdir ${TEST_FOLDER_NAME} + cp ${BUILD_FILE_NAME} ${TEST_FOLDER_NAME} + cp test_binary_script.py ${TEST_FOLDER_NAME} + cd ${TEST_FOLDER_NAME} python3 test_binary_script.py ./${BUILD_FILE_NAME}; - run: name: Compress the file