-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
21 changed files
with
181 additions
and
4,306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.