Skip to content

Commit

Permalink
Update circleci to have integration-tests-nix
Browse files Browse the repository at this point in the history
  • Loading branch information
tgunnoe authored and InoMurko committed Jun 15, 2022
1 parent 330a022 commit ed74c63
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,35 @@ jobs:
circleci tests glob "../integration-tests/test/*.spec.ts" | circleci tests split | tee splits.txt
docker-compose run integration_tests $(cat splits.txt)
working_directory: ops
integration-tests-nix:
machine:
image: nixpkgs/nix-flakes:latest
docker_layer_caching: true
environment:
DOCKER_BUILDKIT: 1
parallelism: 4
steps:
- checkout
- run:
name: Bring up the stack
command: |
DAEMON=1 ./up_local.sh
working_directory: nix
- run:
name: Start background logging
working_directory: nix
background: true
command: docker-compose -f docker-compose.yml logs --follow
- run:
name: Wait for sequencer
command: bash scripts/wait-for-sequencer.sh
working_directory: ops
- run:
name: Run integration tests
command: |
circleci tests glob "../integration-tests/test/*.spec.ts" | circleci tests split | tee splits.txt
docker-compose run integration_tests $(cat splits.txt)
working_directory: nix

workflows:
main:
Expand Down

0 comments on commit ed74c63

Please sign in to comment.