@ -333,114 +333,114 @@ jobs:
name : Scan block_scout_web for vulnerabilities
command : mix sobelow --config
working_directory : "apps/block_scout_web"
test_geth_http_websocket:
docker:
# Ensure .tool-versions matches
- image : circleci/elixir:1.9.1-node-browsers
environment:
MIX_ENV : test
# match POSTGRES_PASSWORD for postgres image below
PGPASSWORD : postgres
# match POSTGRES_USER for postgres image below
PGUSER : postgres
ETHEREUM_JSONRPC_CASE : "EthereumJSONRPC.Case.Geth.HTTPWebSocket"
ETHEREUM_JSONRPC_WEB_SOCKET_CASE : "EthereumJSONRPC.WebSocket.Case.Geth"
- image : circleci/postgres:10.3-alpine
environment:
# Match apps/explorer/config/test.exs config :explorer, Explorer.Repo, database
POSTGRES_DB : explorer_test
# match PGPASSWORD for elixir image above
POSTGRES_PASSWORD : postgres
# match PGUSER for elixir image above
POSTGRES_USER : postgres
working_directory : ~/app
steps:
- attach_workspace:
at : .
- run:
command : ./bin/install_chrome_headless.sh
no_output_timeout : 2400
- run : mix local.hex --force
- run : mix local.rebar --force
- run:
name : Wait for DB
command : dockerize -wait tcp://localhost:5432 -timeout 1m
- run:
name : mix test --exclude no_geth
command : |
# Don't submit coverage report for forks, but let the build succeed
if [[ -z "$COVERALLS_REPO_TOKEN" ]]; then
mix coveralls.html --exclude no_geth --parallel --umbrella
else
mix coveralls.circle --exclude no_geth --parallel --umbrella ||
# if mix failed, then coveralls_merge won't run, so signal done here and return original exit status
(retval=$? && curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_WORKFLOW_WORKSPACE_ID&payload[status]=done" && return $retval)
fi
- store_artifacts:
path : cover/excoveralls.html
- store_test_results:
path : _build/test/junit
test_geth_mox:
docker:
# Ensure .tool-versions matches
- image : circleci/elixir:1.9.1-node-browsers
environment:
MIX_ENV : test
# match POSTGRES_PASSWORD for postgres image below
PGPASSWORD : postgres
# match POSTGRES_USER for postgres image below
PGUSER : postgres
ETHEREUM_JSONRPC_CASE : "EthereumJSONRPC.Case.Geth.Mox"
ETHEREUM_JSONRPC_WEB_SOCKET_CASE : "EthereumJSONRPC.WebSocket.Case.Mox"
- image : circleci/postgres:10.3-alpine
environment:
# Match apps/explorer/config/test.exs config :explorer, Explorer.Repo, database
POSTGRES_DB : explorer_test
# match PGPASSWORD for elixir image above
POSTGRES_PASSWORD : postgres
# match PGUSER for elixir image above
POSTGRES_USER : postgres
working_directory : ~/app
steps:
- attach_workspace:
at : .
- run:
command : ./bin/install_chrome_headless.sh
no_output_timeout : 2400
- run : mix local.hex --force
- run : mix local.rebar --force
- run:
name : Wait for DB
command : dockerize -wait tcp://localhost:5432 -timeout 1m
- run:
name : mix test --exclude no_geth
command : |
# Don't submit coverage report for forks, but let the build succeed
if [[ -z "$COVERALLS_REPO_TOKEN" ]]; then
mix coveralls.html --exclude no_geth --parallel --umbrella
else
mix coveralls.circle --exclude no_geth --parallel --umbrella ||
# if mix failed, then coveralls_merge won't run, so signal done here and return original exit status
(retval=$? && curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_WORKFLOW_WORKSPACE_ID&payload[status]=done" && return $retval)
fi
- store_artifacts:
path : cover/excoveralls.html
- store_test_results:
path : _build/test/junit
# test_geth_http_websocket:
# docker:
# # Ensure .tool-versions matches
# - image: circleci/elixir:1.9.1-node-browsers
# environment:
# MIX_ENV: test
# # match POSTGRES_PASSWORD for postgres image below
# PGPASSWORD: postgres
# # match POSTGRES_USER for postgres image below
# PGUSER: postgres
# ETHEREUM_JSONRPC_CASE: "EthereumJSONRPC.Case.Geth.HTTPWebSocket"
# ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Geth"
# - image: circleci/postgres:10.3-alpine
# environment:
# # Match apps/explorer/config/test.exs config :explorer, Explorer.Repo, database
# POSTGRES_DB: explorer_test
# # match PGPASSWORD for elixir image above
# POSTGRES_PASSWORD: postgres
# # match PGUSER for elixir image above
# POSTGRES_USER: postgres
# working_directory: ~/app
# steps:
# - attach_workspace:
# at: .
# - run:
# command: ./bin/install_chrome_headless.sh
# no_output_timeout: 2400
# - run: mix local.hex --force
# - run: mix local.rebar --force
# - run:
# name: Wait for DB
# command: dockerize -wait tcp://localhost:5432 -timeout 1m
# - run:
# name: mix test --exclude no_geth
# command: |
# # Don't submit coverage report for forks, but let the build succeed
# if [[ -z "$COVERALLS_REPO_TOKEN" ]]; then
# mix coveralls.html --exclude no_geth --parallel --umbrella
# else
# mix coveralls.circle --exclude no_geth --parallel --umbrella ||
# # if mix failed, then coveralls_merge won't run, so signal done here and return original exit status
# (retval=$? && curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_WORKFLOW_WORKSPACE_ID&payload[status]=done" && return $retval)
# fi
# - store_artifacts:
# path: cover/excoveralls.html
# - store_test_results:
# path: _build/test/junit
# test_geth_mox:
# docker:
# # Ensure .tool-versions matches
# - image: circleci/elixir:1.9.1-node-browsers
# environment:
# MIX_ENV: test
# # match POSTGRES_PASSWORD for postgres image below
# PGPASSWORD: postgres
# # match POSTGRES_USER for postgres image below
# PGUSER: postgres
# ETHEREUM_JSONRPC_CASE: "EthereumJSONRPC.Case.Geth.Mox"
# ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Mox"
# - image: circleci/postgres:10.3-alpine
# environment:
# # Match apps/explorer/config/test.exs config :explorer, Explorer.Repo, database
# POSTGRES_DB: explorer_test
# # match PGPASSWORD for elixir image above
# POSTGRES_PASSWORD: postgres
# # match PGUSER for elixir image above
# POSTGRES_USER: postgres
# working_directory: ~/app
# steps:
# - attach_workspace:
# at: .
# - run:
# command: ./bin/install_chrome_headless.sh
# no_output_timeout: 2400
# - run: mix local.hex --force
# - run: mix local.rebar --force
# - run:
# name: Wait for DB
# command: dockerize -wait tcp://localhost:5432 -timeout 1m
# - run:
# name: mix test --exclude no_geth
# command: |
# # Don't submit coverage report for forks, but let the build succeed
# if [[ -z "$COVERALLS_REPO_TOKEN" ]]; then
# mix coveralls.html --exclude no_geth --parallel --umbrella
# else
# mix coveralls.circle --exclude no_geth --parallel --umbrella ||
# # if mix failed, then coveralls_merge won't run, so signal done here and return original exit status
# (retval=$? && curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_WORKFLOW_WORKSPACE_ID&payload[status]=done" && return $retval)
# fi
# - store_artifacts:
# path: cover/excoveralls.html
# - store_test_results:
# path: _build/test/junit
test_parity_http_websocket:
docker:
# Ensure .tool-versions matches
@ -573,8 +573,8 @@ workflows:
requires:
- test_parity_http_websocket
- test_parity_mox
- test_geth_http_websocket
- test_geth_mox
# - test_geth_http_websocket
# - test_geth_mox
- credo:
requires:
- build
@ -593,8 +593,8 @@ workflows:
- sobelow
- test_parity_http_websocket
- test_parity_mox
- test_geth_http_websocket
- test_geth_mox
# - test_geth_http_websocket
# - test_geth_mox
- dialyzer:
requires:
- build
@ -619,9 +619,9 @@ workflows:
- test_parity_mox:
requires:
- build
- test_geth_http_websocket:
requires:
- build
- test_geth_mox:
requires:
- build
# - test_geth_http_websocket:
# requires:
# - build
# - test_geth_mox:
# requires:
# - build