diff --git a/.circleci/config.yml b/.circleci/config.yml index cbf4632cb1..9af83b7cf4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -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: | @@ -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: |