diff --git a/.circleci/continue-config.yml b/.circleci/continue-config.yml index 168b81d5..ded56151 100644 --- a/.circleci/continue-config.yml +++ b/.circleci/continue-config.yml @@ -49,24 +49,26 @@ jobs: - run: name: Checkout devtools command: git clone https://github.com/secretflow/devtools.git ../devtools - - run: - name: Setup GCS - command: ../devtools/base64_converter.py --str ${gcs_content} --out_file ../gcs.json - run: name: "Install dependencies" command: | python3 -m pip install -U pip python3 -m pip install -r requirements.txt python3 -m pip install -r requirements-dev.txt + - run: + name: Setup GCS + command: | + echo ${gcs_content} > ../gcs.data + ../devtools/bazel_cache_setup.py --in_file=../gcs.data --out_file=../gcs.json --min_download - run: name: "build" - command: bazel build //... -c opt --ui_event_filters=-info,-debug,-warning --jobs 20 --remote_cache=https://storage.googleapis.com/secretflow --google_credentials=../gcs.json --remote_download_minimal + command: bazel build //... -c opt --ui_event_filters=-info,-debug,-warning --jobs 20 - run: name: "test" command: | set +e declare -i test_status - bazel test //... -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors --remote_cache=https://storage.googleapis.com/secretflow --google_credentials=../gcs.json --remote_download_minimal | tee test_result.log; test_status=${PIPESTATUS[0]} + bazel test //... -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors| tee test_result.log; test_status=${PIPESTATUS[0]} sh ../devtools/rename-junit-xml.sh find bazel-bin/ -executable -type f -name "*_test" -print0 | xargs -0 tar -cvzf test_binary.tar.gz @@ -102,16 +104,18 @@ jobs: pip install -r requirements-dev.txt - run: name: Setup GCS - command: ../devtools/base64_converter.py --str ${gcs_content} --out_file ../gcs.json + command: | + echo ${gcs_content} > ../gcs.data + ../devtools/bazel_cache_setup.py --in_file=../gcs.data --out_file=../gcs.json --min_download - run: name: "build" - command: bazel build //... -c opt --ui_event_filters=-info,-debug,-warning --remote_cache=https://storage.googleapis.com/secretflow --google_credentials=../gcs.json --remote_download_minimal + command: bazel build //... -c opt --ui_event_filters=-info,-debug,-warning - run: name: "test" command: | set +e declare -i test_status - bazel test //... -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors --remote_cache=https://storage.googleapis.com/secretflow --google_credentials=../gcs.json --remote_download_minimal | tee test_result.log; test_status=${PIPESTATUS[0]} + bazel test //... -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors | tee test_result.log; test_status=${PIPESTATUS[0]} sh ../devtools/rename-junit-xml.sh find bazel-bin/ -perm +111 -type f -name "*_test" -print0 | xargs -0 tar -cvzf test_binary.tar.gz