Merge pull request #3505 from ethereum/prebuild

predeploy
async_init_simulator
yann300 2 years ago committed by GitHub
commit 201eea8725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 103
      .circleci/config.yml

@ -24,6 +24,7 @@ jobs:
key: v1-deps-{{ checksum "yarn.lock" }} key: v1-deps-{{ checksum "yarn.lock" }}
paths: paths:
- node_modules - node_modules
- run: - run:
name: Build name: Build
command: | command: |
@ -39,6 +40,7 @@ jobs:
paths: paths:
- "persist" - "persist"
build-plugin: build-plugin:
docker: docker:
- image: cimg/node:14.17.6-browsers - image: cimg/node:14.17.6-browsers
@ -212,49 +214,13 @@ jobs:
- store_artifacts: - store_artifacts:
path: ./reports/screenshots path: ./reports/screenshots
deploy-remix-live:
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: predeploy:
- 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:
- 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 working_directory: ~/remix-project
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
@ -265,47 +231,39 @@ jobs:
key: v1-deps-{{ checksum "yarn.lock" }} key: v1-deps-{{ checksum "yarn.lock" }}
paths: paths:
- node_modules - node_modules
- run: yarn run downloadsolc_assets - run: yarn build:production
- run: yarn run build:production - run: mkdir persist && zip -0 -r persist/predeploy.zip dist
- run: - persist_to_workspace:
name: Deploy root: .
command: | paths:
if [ "${CIRCLE_BRANCH}" == "master" ]; then - "persist"
./apps/remix-ide/ci/deploy_from_travis_remix-alpha.sh;
fi
deploy-remix-beta: deploy-build:
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
parameters:
script:
type: string
steps: steps:
- checkout - checkout
- restore_cache: - attach_workspace:
keys: at: .
- v1-deps-{{ checksum "yarn.lock" }} - run: unzip ./persist/predeploy.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:
@ -364,30 +322,41 @@ workflows:
- remix-libs - remix-libs
- remix-ide-browser - remix-ide-browser
- plugins - plugins
- deploy-remix-live:
- predeploy:
filters:
branches:
only: ['master', 'remix_live', 'remix_beta']
- deploy-build:
script: "live"
requires: requires:
- lint - lint
- remix-libs - remix-libs
- remix-ide-browser - remix-ide-browser
- plugins - plugins
- predeploy
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
- remix-ide-browser - remix-ide-browser
- plugins - plugins
- predeploy
filters: filters:
branches: branches:
only: master only: master
- deploy-remix-beta: - deploy-build:
script: "beta"
requires: requires:
- lint - lint
- remix-libs - remix-libs
- remix-ide-browser - remix-ide-browser
- plugins - plugins
- predeploy
filters: filters:
branches: branches:
only: remix_beta only: remix_beta

Loading…
Cancel
Save