-
Notifications
You must be signed in to change notification settings - Fork 59
/
config.yml
51 lines (49 loc) · 1.62 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#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: Split tests
command: circleci tests glob "../integration-tests/test/*.spec.ts" | circleci tests split --split-by=timings --time-default=10s | tee splits.txt
working_directory: ops
- run:
name: Run integration tests
command: docker-compose run integration_tests $(cat splits.txt)
working_directory: ops
- run:
name: Rewrite test name for next run
command: |
mkdir -p result
cat /home/circleci/result/output.xml | sed 's/\/opt\/optimism/../g' | tee result/result.xml
working_directory: ops
- store_test_results:
path: /home/circleci/project/ops/result
- store_artifacts:
path: /home/circleci/project/ops/result
workflows:
main:
jobs:
- integration-tests