pull/3505/head
filip mertens 2 years ago committed by bunsenstraat
parent 0bfdda50ec
commit f69ef79418
  1. 104
      .circleci/config.yml

@ -38,6 +38,7 @@ jobs:
root: . root: .
paths: paths:
- "persist" - "persist"
prebuild: prebuild:
docker: docker:
- image: cimg/node:14.17.6-browsers - image: cimg/node:14.17.6-browsers
@ -61,6 +62,7 @@ jobs:
root: . root: .
paths: paths:
- "persist" - "persist"
build-plugin: build-plugin:
docker: docker:
- image: cimg/node:14.17.6-browsers - image: cimg/node:14.17.6-browsers
@ -234,100 +236,32 @@ jobs:
- store_artifacts: - store_artifacts:
path: ./reports/screenshots path: ./reports/screenshots
deploy-remix-live: deploy-build:
docker:
- image: cimg/node:14.17.6-browsers
resource_class:
xlarge
environment:
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
- COMMIT_AUTHOR: "Circle CI"
- FILES_TO_PACKAGE: "dist/apps/remix-ide/index.html dist/apps/remix-ide/404.html dist/apps/remix-ide/*.js dist/apps/remix-ide/assets dist/apps/remix-ide/favicon.ico"
working_directory: ~/remix-project
steps:
- checkout
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
- run: yarn
- save_cache:
key: v1-deps-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run: yarn run downloadsolc_assets
- run: yarn run build:production
- run:
name: Deploy
command: |
if [ "${CIRCLE_BRANCH}" == "remix_live" ]; then
./apps/remix-ide/ci/deploy_from_travis_remix-live.sh;
fi
deploy-remix-alpha:
docker: docker:
- image: cimg/node:14.17.6-browsers - image: cimg/node:14.17.6-browsers
resource_class: resource_class:
xlarge xlarge
environment: environment:
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org" COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
- COMMIT_AUTHOR: "Circle CI" COMMIT_AUTHOR: "Circle CI"
- FILES_TO_PACKAGE: "dist/apps/remix-ide/index.html dist/apps/remix-ide/404.html dist/apps/remix-ide/*.js dist/apps/remix-ide/assets dist/apps/remix-ide/favicon.ico" FILES_TO_PACKAGE: "dist/apps/remix-ide/index.html dist/apps/remix-ide/404.html dist/apps/remix-ide/*.js dist/apps/remix-ide/assets dist/apps/remix-ide/favicon.ico"
working_directory: ~/remix-project working_directory: ~/remix-project
steps: parameters:
- checkout script:
- restore_cache: type: string
keys:
- v1-deps-{{ checksum "yarn.lock" }}
- run: yarn
- save_cache:
key: v1-deps-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run: yarn run downloadsolc_assets
- run: yarn run build:production
- run:
name: Deploy
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
./apps/remix-ide/ci/deploy_from_travis_remix-alpha.sh;
fi
deploy-remix-beta:
docker:
- image: cimg/node:14.17.6-browsers
resource_class:
xlarge
environment:
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
- COMMIT_AUTHOR: "Circle CI"
- FILES_TO_PACKAGE: "dist/apps/remix-ide/index.html dist/apps/remix-ide/404.html dist/apps/remix-ide/*.js dist/apps/remix-ide/assets dist/apps/remix-ide/favicon.ico"
working_directory: ~/remix-project
steps: steps:
- checkout - checkout
- restore_cache: - attach_workspace:
keys: at: .
- v1-deps-{{ checksum "yarn.lock" }} - run: unzip ./persist/prebuild.zip
- run: yarn
- save_cache:
key: v1-deps-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run: yarn run downloadsolc_assets
- run: yarn run build:production
- run: - run:
name: Deploy name: Deploy
command: | command: ./apps/remix-ide/ci/deploy_from_travis_remix-<< parameters.script >>.sh;
if [ "${CIRCLE_BRANCH}" == "remix_beta" ]; then
./apps/remix-ide/ci/deploy_from_travis_remix-beta.sh;
fi
workflows: workflows:
version: 2
run_flaky_tests: run_flaky_tests:
when: << pipeline.parameters.run_flaky_tests >> when: << pipeline.parameters.run_flaky_tests >>
jobs: jobs:
@ -386,11 +320,13 @@ workflows:
- remix-libs - remix-libs
- remix-ide-browser - remix-ide-browser
- plugins - plugins
- prebuild: - prebuild:
filters: filters:
branches: branches:
only: ['master', 'remix_live', 'remix_beta'] only: ['master', 'remix_live', 'remix_beta']
- deploy-remix-live: - deploy-build:
script: "live"
requires: requires:
- lint - lint
- remix-libs - remix-libs
@ -399,7 +335,8 @@ workflows:
filters: filters:
branches: branches:
only: remix_live only: remix_live
- deploy-remix-alpha: - deploy-build:
script: "alpha"
requires: requires:
- lint - lint
- remix-libs - remix-libs
@ -408,7 +345,8 @@ workflows:
filters: filters:
branches: branches:
only: master only: master
- deploy-remix-beta: - deploy-build:
script: "beta"
requires: requires:
- lint - lint
- remix-libs - remix-libs

Loading…
Cancel
Save