|
|
|
@ -78,45 +78,45 @@ jobs: |
|
|
|
|
# command: if [ -z "$CIRCLE_PR_NUMBER" ]; then ./run-integration-tests.sh; fi |
|
|
|
|
# working_directory: /home |
|
|
|
|
|
|
|
|
|
integration_tests: |
|
|
|
|
docker: |
|
|
|
|
- image: circleci/python:3.6.4 |
|
|
|
|
working_directory: ~/project |
|
|
|
|
steps: |
|
|
|
|
- checkout |
|
|
|
|
- setup_remote_docker |
|
|
|
|
- run: |
|
|
|
|
name: Clone Edelweiss |
|
|
|
|
command: git clone --recurse-submodules https://$GITHUB_TOKEN@github.com/Consensys/Edelweiss.git |
|
|
|
|
- run: |
|
|
|
|
name: Update SWC-registry |
|
|
|
|
working_directory: ~/project/Edelweiss |
|
|
|
|
command: git submodule update --recursive --remote |
|
|
|
|
- run: |
|
|
|
|
name: Build Edelweiss |
|
|
|
|
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: |
|
|
|
|
name: Run Edelweiss |
|
|
|
|
command: | |
|
|
|
|
docker run \ |
|
|
|
|
-e CIRCLE_BRANCH=$CIRCLE_BRANCH \ |
|
|
|
|
-e CIRCLE_SHA1=$CIRCLE_SHA1 \ |
|
|
|
|
-e CIRCLE_BUILD_NUM=$CIRCLE_BUILD_NUM \ |
|
|
|
|
-e CIRCLE_BUILD_URL=$CIRCLE_BUILD_URL \ |
|
|
|
|
-e CIRCLE_WEBHOOK_URL=$CIRCLE_WEBHOOK_URL \ |
|
|
|
|
-e MONGO_URL=$MONGO_URL \ |
|
|
|
|
--rm edelweiss-mythril:latest \ |
|
|
|
|
--timeout 90 \ |
|
|
|
|
--output-dir /opt/edelweiss \ |
|
|
|
|
--s3 \ |
|
|
|
|
--dynamodb \ |
|
|
|
|
--circle-ci CircleCI/mythril.csv \ |
|
|
|
|
--ignore-false-positives $IGNORE_FALSE_POSITIVES \ |
|
|
|
|
--ignore-regressions $IGNORE_REGRESSIONS |
|
|
|
|
# integration_tests: |
|
|
|
|
# docker: |
|
|
|
|
# - image: circleci/python:3.6.4 |
|
|
|
|
# working_directory: ~/project |
|
|
|
|
# steps: |
|
|
|
|
# - checkout |
|
|
|
|
# - setup_remote_docker |
|
|
|
|
# - run: |
|
|
|
|
# name: Clone Edelweiss |
|
|
|
|
# command: git clone --recurse-submodules https://$GITHUB_TOKEN@github.com/Consensys/Edelweiss.git |
|
|
|
|
# - run: |
|
|
|
|
# name: Update SWC-registry |
|
|
|
|
# working_directory: ~/project/Edelweiss |
|
|
|
|
# command: git submodule update --recursive --remote |
|
|
|
|
# - run: |
|
|
|
|
# name: Build Edelweiss |
|
|
|
|
# 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: |
|
|
|
|
# name: Run Edelweiss |
|
|
|
|
# command: | |
|
|
|
|
# docker run \ |
|
|
|
|
# -e CIRCLE_BRANCH=$CIRCLE_BRANCH \ |
|
|
|
|
# -e CIRCLE_SHA1=$CIRCLE_SHA1 \ |
|
|
|
|
# -e CIRCLE_BUILD_NUM=$CIRCLE_BUILD_NUM \ |
|
|
|
|
# -e CIRCLE_BUILD_URL=$CIRCLE_BUILD_URL \ |
|
|
|
|
# -e CIRCLE_WEBHOOK_URL=$CIRCLE_WEBHOOK_URL \ |
|
|
|
|
# -e MONGO_URL=$MONGO_URL \ |
|
|
|
|
# --rm edelweiss-mythril:latest \ |
|
|
|
|
# --timeout 90 \ |
|
|
|
|
# --output-dir /opt/edelweiss \ |
|
|
|
|
# --s3 \ |
|
|
|
|
# --dynamodb \ |
|
|
|
|
# --circle-ci CircleCI/mythril.csv \ |
|
|
|
|
# --ignore-false-positives $IGNORE_FALSE_POSITIVES \ |
|
|
|
|
# --ignore-regressions $IGNORE_REGRESSIONS |
|
|
|
|
|
|
|
|
|
pypi_release: |
|
|
|
|
<<: *defaults |
|
|
|
|