Skip to content

Commit

Permalink
add perf cli smoke test (#1762)
Browse files Browse the repository at this point in the history
* add perf cli smoke test

This PR adds ci step that runs `transactions` perf test
  • Loading branch information
ayrat555 authored Nov 10, 2020
1 parent 33c3300 commit d60fc03
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,8 @@ jobs:
description: "These are not actually performance tests, we're checking if the scripts work"
machine:
image: ubuntu-1604:201903-01
environment:
PERF_IMAGE_NAME: "omisego/perf:latest"
steps:
- checkout
- run:
Expand All @@ -665,6 +667,9 @@ jobs:
[ -d data ] || mkdir data && chmod 777 data
- docker_login
- make_docker_images
- run:
name: Build perf docker image
command: make docker-perf IMAGE_NAME=$PERF_IMAGE_NAME
- run:
name: Start daemon services
command: |
Expand All @@ -685,6 +690,14 @@ jobs:
make init
export $(cat ../../localchain_contract_addresses.env | xargs)
make test
- run:
name: Show help information
command: docker run -it $PERF_IMAGE_NAME mix run -e "LoadTest.TestRunner.run()" -- help
- run:
name: Run perf smoke test
command: |
export $(cat ./localchain_contract_addresses.env | xargs) &&
docker run -it --env-file ./localchain_contract_addresses.env --network host $PERF_IMAGE_NAME mix run -e "LoadTest.TestRunner.run()" -- "deposits" 10 10
- run:
name: (Perf) Format generated code and check for warnings
command: |
Expand Down

0 comments on commit d60fc03

Please sign in to comment.