Skip to content

Commit

Permalink
Split CircleCI jobs (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
axic authored May 15, 2020
1 parent 6c07707 commit 5e78324
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2.0
version: 2.1

jobs:
build:
docker:
- image: cimg/python:3.8.1
- image: cimg/base:2020.01
steps:
- checkout
- run:
Expand All @@ -15,20 +15,37 @@ jobs:
- run:
name: Compile the contract
command: make
- persist_to_workspace:
root: .
paths:
- deposit_contract.json
- combined.json
- lib

spectest:
docker:
- image: cimg/python:3.8.1
steps:
- checkout
- attach_workspace:
at: /tmp/
- run:
name: Run eth2.0-specs tests
name: Update python3
command: |
sudo apt-get update
sudo apt-get install -y python3-venv
- run:
name: Install eth2.0-specs tests
command: |
git clone https://github.com/ethereum/eth2.0-specs
cp -f deposit_contract.json eth2.0-specs/deposit_contract/contracts/validator_registration.json
cp -f /tmp/deposit_contract.json eth2.0-specs/deposit_contract/contracts/validator_registration.json
cd eth2.0-specs
make install_deposit_contract_tester
- run:
name: Run eth2.0-specs tests
command: |
cd eth2.0-specs
make test_deposit_contract
- persist_to_workspace:
root: .
paths:
- combined.json
- lib
test:
docker:
Expand All @@ -50,6 +67,9 @@ workflows:
build_and_test:
jobs:
- build
- test:
- spectest:
requires:
- build
- test:
requires:
- spectest

0 comments on commit 5e78324

Please sign in to comment.