Skip to content

Commit

Permalink
Added integration test container build job.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4handjr committed Dec 11, 2024
1 parent c3399e4 commit ef140d4
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ jobs:
destination: integration_test_results.xml
- store_test_results:
path: workspace/test-results
- save_test_cache:
cache_key: rust-v1-integration-test-cache-{{ checksum "Cargo.lock" }}

test-unit:
docker:
Expand Down Expand Up @@ -331,6 +329,26 @@ jobs:
paths:
- autopush-locust.tar

build-integration-test:
docker:
- image: cimg/base:2024.06
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Build Image
command: docker build -t autopush-integration-tests -f ./tests/integration/Dockerfile .
- run:
name: Save Docker Image to Workspace
command: |
mkdir -p /tmp/workspace
docker save -o /tmp/workspace/autopush-integration-tests.tar autopush-integration-tests
- persist_to_workspace:
root: /tmp/workspace
paths:
- autopush-integration-tests.tar

deploy:
executor: gcp-gcr/default
parameters:
Expand Down Expand Up @@ -457,6 +475,10 @@ workflows:
filters:
tags:
only: /.*/
- build-integration-test:
filters:
tags:
only: /.*/

# Comment out the following two sections for local CircleCI testing.
- deploy:
Expand Down

0 comments on commit ef140d4

Please sign in to comment.