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