Skip to content

Commit

Permalink
ci (#102)
Browse files Browse the repository at this point in the history
* ci

* build for integration tests

* run just integration tests

* pass in files to execute

* logs for docker compose

* bump hardhat

* disable parallel

* rm old integration tests

* cleanup

* tests fix

* tests fix

* increase parallelism

* linter cleanup

Co-authored-by: Ino Murko <ino@enya.ai>
  • Loading branch information
InoMurko and InoMurko authored May 3, 2022
1 parent d05e5d6 commit 54df4e9
Show file tree
Hide file tree
Showing 21 changed files with 181 additions and 4,306 deletions.
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#adapted from https://raw.githubusercontent.com/ethereum-optimism/optimism/develop/.circleci/config.yml
version: 2.1

jobs:
integration-tests:
machine:
image: ubuntu-2004:202111-02
docker_layer_caching: true
environment:
DOCKER_BUILDKIT: 1
parallelism: 4
steps:
- checkout
- run:
name: Bring up the stack
command: |
./scripts/build-ci.sh
BUILD=2 DAEMON=1 ./up_local.sh
working_directory: ops
- run:
name: Start background logging
working_directory: ops
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: ops

workflows:
main:
jobs:
- integration-tests
Loading

0 comments on commit 54df4e9

Please sign in to comment.