Security analysis tool for EVM bytecode. Supports smart contracts built for Ethereum, Hedera, Quorum, Vechain, Roostock, Tron and other EVM-compatible blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mythril/.circleci/config.yml

117 lines
2.8 KiB

defaults: &defaults
docker:
- image: birdofpreyru/mythril-integration-tests:0.0.4
version: 2
jobs:
# Basic testing of a new commit to any branch.
test:
<<: *defaults
steps:
7 years ago
- checkout:
path: /home/mythril
7 years ago
# Uncomment, for local testing with circleci command, as it ignores
# path param in checkout command, and this symlink compenstates for that.
# - run: ln -s /root/project /home/mythril
- restore-cache:
keys:
- tox-env-{{ checksum "/home/mythril/setup.py" }}
7 years ago
- run:
name: Install tox envs
command: tox -vv --notest
working_directory: /home/mythril
environment:
LC_ALL: en_US.ASCII
LANG: en_US.ASCII
7 years ago
- save_cache:
key: tox-env-{{ checksum "/home/mythril/setup.py" }}
paths:
- .tox/py*
- /root/.cache/pip/wheels/
7 years ago
- run:
background: true
name: Launch of background geth instance
command: geth --syncmode full --rpc --shh
- run:
name: Unit-testing
command: tox
working_directory: /home/mythril
7 years ago
environment:
LC_ALL: en_US.ASCII
LANG: en_US.ASCII
- store_test_results:
7 years ago
path: /home/mythril/.tox/output
- store_artifacts:
7 years ago
path: /home/mythril/.tox/output
- run:
name: Ensuring that setup script is functional
command: python3 setup.py install
working_directory: /home/mythril
- run:
name: Integration tests
command: if [ -z "$CIRCLE_PR_NUMBER" ]; then ./run-integration-tests.sh; fi
working_directory: /home
pypi_release:
<<: *defaults
steps:
- checkout:
path: /home/mythril
- run:
name: Verify Git tag vs. version
command: python3 setup.py verify
working_directory: /home/mythril
- run:
name: Build
command: python3 setup.py sdist
working_directory: /home/mythril
- run:
name: Deploy
command: twine upload dist/*
working_directory: /home/mythril
dockerhub_release:
docker:
- image: docker:stable
steps:
- checkout
- setup_remote_docker
- run:
name: Building Docker Image
command: ./docker_build_and_deploy.sh
workflows:
version: 2
build:
jobs:
7 years ago
- test:
filters:
tags:
only: /.*/
- pypi_release:
filters:
7 years ago
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*/
requires:
- test
- dockerhub_release:
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*/
requires:
- test