|
|
@ -78,44 +78,36 @@ jobs: |
|
|
|
# command: if [ -z "$CIRCLE_PR_NUMBER" ]; then ./run-integration-tests.sh; fi |
|
|
|
# command: if [ -z "$CIRCLE_PR_NUMBER" ]; then ./run-integration-tests.sh; fi |
|
|
|
# working_directory: /home |
|
|
|
# working_directory: /home |
|
|
|
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
|
|
|
name: Call webhook |
|
|
|
|
|
|
|
command: | |
|
|
|
|
|
|
|
curl -I -X POST -H -d "https://circleci.com/api/v1/project/${ORGANIZATION}/${WEBHOOK_PROJECT}/tree/master?circle-token=${CIRCLE_TOKEN}" | head -n 1 | cut -d$' ' -f2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
integration_tests: |
|
|
|
integration_tests: |
|
|
|
docker: |
|
|
|
docker: |
|
|
|
- image: mythril/mythx-ci |
|
|
|
- image: circleci/python:3.6.4 |
|
|
|
working_directory: /home |
|
|
|
working_directory: ~/project |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout: |
|
|
|
- checkout |
|
|
|
path: /home/mythril |
|
|
|
- setup_remote_docker |
|
|
|
- run: |
|
|
|
|
|
|
|
name: Builds `mythril` |
|
|
|
|
|
|
|
command: cd mythril && python3 setup.py install |
|
|
|
|
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Installs other MythX components |
|
|
|
name: Clone Edelweiss |
|
|
|
command: | |
|
|
|
command: git clone --recurse-submodules https://$GITHUB_TOKEN@github.com/Consensys/Edelweiss.git |
|
|
|
./install-mythx-components.sh pythx edelweiss harvey-cli \ |
|
|
|
|
|
|
|
harvey-tyro maestro maru maru-tyro mythril-api \ |
|
|
|
|
|
|
|
mythril-tyro tyro |
|
|
|
|
|
|
|
- run: |
|
|
|
- run: |
|
|
|
background: true |
|
|
|
name: Update SWC-registry |
|
|
|
name: Launches MythX platform |
|
|
|
working_directory: ~/project/Edelweiss |
|
|
|
command: ./launch-mythx.sh |
|
|
|
command: git submodule update --recursive --remote |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Waits for MythX to spin-up |
|
|
|
name: Build Edelweiss |
|
|
|
command: sleep 15s |
|
|
|
command: | |
|
|
|
|
|
|
|
docker build \ |
|
|
|
|
|
|
|
--build-arg AWS_ACCESS_KEY_ID=$S3_AWS_ACCESS_KEY_ID \ |
|
|
|
|
|
|
|
--build-arg AWS_SECRET_ACCESS_KEY=$S3_AWS_SECRET_ACCESS_KEY \ |
|
|
|
|
|
|
|
--build-arg AWS_DEFAULT_REGION=us-east-1 --rm -t "edelweiss-mythril:latest" . -f Edelweiss/dockerfiles/mythril/Dockerfile |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Quick Edelweiss test |
|
|
|
name: Run Edelweiss |
|
|
|
command: /home/run-edelweiss-test.sh CircleCI/latest.quick.csv 5 |
|
|
|
command: | |
|
|
|
|
|
|
|
docker run --rm edelweiss-mythril:latest \ |
|
|
|
# TODO: Temporary disabled |
|
|
|
--timeout 90 \ |
|
|
|
# - run: |
|
|
|
--output-dir /opt/edelweiss \ |
|
|
|
# name: Full Edelweiss test |
|
|
|
--plugin-dir /opt/mythril \ |
|
|
|
# environment: |
|
|
|
--s3 \ |
|
|
|
# MYTHX_API_FULL_MODE: true |
|
|
|
--circle-ci CircleCI/mythril.csv |
|
|
|
# command: /home/run-edelweiss-test.sh CircleCI/latest.full.csv |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pypi_release: |
|
|
|
pypi_release: |
|
|
|
<<: *defaults |
|
|
|
<<: *defaults |
|
|
|