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.
496 lines
16 KiB
496 lines
16 KiB
# Javascript Node CircleCI 2.0 configuration file
|
|
#
|
|
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
|
|
#
|
|
version: 2.1
|
|
orbs:
|
|
browser-tools: circleci/browser-tools@1.2.3
|
|
jobs:
|
|
build:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
working_directory: ~/remix-project
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
keys:
|
|
- v1-deps-{{ checksum "package-lock.json" }}
|
|
- run: npm install
|
|
- save_cache:
|
|
key: v1-deps-{{ checksum "package-lock.json" }}
|
|
paths:
|
|
- node_modules
|
|
- run: npm run downloadsolc_assets
|
|
- run: npx nx build remix-ide
|
|
- run: npx nx build remix-ide-e2e-src-local-plugin
|
|
- run: mkdir persist && zip -r persist/dist.zip dist
|
|
- persist_to_workspace:
|
|
root: .
|
|
paths:
|
|
- 'persist'
|
|
lint:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
working_directory: ~/remix-project
|
|
parallelism: 35
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- v1-deps-{{ checksum "package-lock.json" }}
|
|
- run:
|
|
name: Remix Libs Linting
|
|
command: ./apps/remix-ide/ci/lint.sh
|
|
remix-libs:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
working_directory: ~/remix-project
|
|
|
|
steps:
|
|
- checkout
|
|
- attach_workspace:
|
|
at: .
|
|
- run: unzip ./persist/dist.zip
|
|
- restore_cache:
|
|
keys:
|
|
- v1-deps-{{ checksum "package-lock.json" }}
|
|
- run: npm run build:libs
|
|
- run: cd dist/libs/remix-tests && npm install
|
|
- run: npm run test:libs
|
|
|
|
remix-ide-chrome-1:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
working_directory: ~/remix-project
|
|
|
|
parallelism: 35
|
|
steps:
|
|
- browser-tools/install-chrome
|
|
- browser-tools/install-chromedriver
|
|
- checkout
|
|
- attach_workspace:
|
|
at: .
|
|
- run: unzip ./persist/dist.zip
|
|
- restore_cache:
|
|
keys:
|
|
- v1-deps-{{ checksum "package-lock.json" }}
|
|
- run: npm run selenium-install
|
|
- run:
|
|
name: Start Selenium
|
|
command: npx selenium-standalone start
|
|
background: true
|
|
- run: ./apps/remix-ide/ci/browser_tests_chrome_1.sh
|
|
- store_test_results:
|
|
path: ./reports/tests
|
|
- store_artifacts:
|
|
path: ./reports/screenshots
|
|
|
|
remix-ide-chrome-2:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
working_directory: ~/remix-project
|
|
|
|
parallelism: 35
|
|
steps:
|
|
- browser-tools/install-chrome
|
|
- browser-tools/install-chromedriver
|
|
- checkout
|
|
- attach_workspace:
|
|
at: .
|
|
- run: unzip ./persist/dist.zip
|
|
- restore_cache:
|
|
keys:
|
|
- v1-deps-{{ checksum "package-lock.json" }}
|
|
- run: npm run selenium-install
|
|
- run:
|
|
name: Start Selenium
|
|
command: npx selenium-standalone start
|
|
background: true
|
|
- run: ./apps/remix-ide/ci/browser_tests_chrome_2.sh
|
|
- store_test_results:
|
|
path: ./reports/tests
|
|
- store_artifacts:
|
|
path: ./reports/screenshots
|
|
|
|
remix-ide-firefox-1:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
working_directory: ~/remix-project
|
|
|
|
parallelism: 35
|
|
steps:
|
|
- browser-tools/install-firefox
|
|
- browser-tools/install-geckodriver
|
|
- checkout
|
|
- attach_workspace:
|
|
at: .
|
|
- run: unzip ./persist/dist.zip
|
|
- restore_cache:
|
|
keys:
|
|
- v1-deps-{{ checksum "package-lock.json" }}
|
|
- run: npm run selenium-install
|
|
- run:
|
|
name: Start Selenium
|
|
command: npx selenium-standalone start
|
|
background: true
|
|
- run: ./apps/remix-ide/ci/browser_tests_firefox_1.sh
|
|
- store_test_results:
|
|
path: ./reports/tests
|
|
- store_artifacts:
|
|
path: ./reports/screenshots
|
|
|
|
remix-ide-firefox-2:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
working_directory: ~/remix-project
|
|
|
|
parallelism: 35
|
|
steps:
|
|
- browser-tools/install-firefox
|
|
- browser-tools/install-geckodriver
|
|
- checkout
|
|
- attach_workspace:
|
|
at: .
|
|
- run: unzip ./persist/dist.zip
|
|
- restore_cache:
|
|
keys:
|
|
- v1-deps-{{ checksum "package-lock.json" }}
|
|
- run: npm run selenium-install
|
|
- run:
|
|
name: Start Selenium
|
|
command: npx selenium-standalone start
|
|
background: true
|
|
- run: ./apps/remix-ide/ci/browser_tests_firefox_2.sh
|
|
- store_test_results:
|
|
path: ./reports/tests
|
|
- store_artifacts:
|
|
path: ./reports/screenshots
|
|
|
|
remix-ide-run-deploy:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/runtime.js dist/apps/remix-ide/vendor.js dist/apps/remix-ide/favicon.ico"
|
|
working_directory: ~/remix-project
|
|
|
|
steps:
|
|
- browser-tools/install-chrome
|
|
- browser-tools/install-chromedriver
|
|
- checkout
|
|
- attach_workspace:
|
|
at: .
|
|
- run: unzip ./persist/dist.zip
|
|
- restore_cache:
|
|
keys:
|
|
- v1-deps-{{ checksum "package-lock.json" }}
|
|
- run: npm run selenium-install
|
|
- run:
|
|
name: Start Selenium
|
|
command: npx selenium-standalone start
|
|
background: true
|
|
- run: ./apps/remix-ide/ci/browser_tests_run_deploy.sh
|
|
- store_test_results:
|
|
path: ./reports/tests
|
|
- store_artifacts:
|
|
path: ./reports/screenshots
|
|
|
|
remix-ide-plugin-api:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/runtime.js dist/apps/remix-ide/vendor.js dist/apps/remix-ide/favicon.ico"
|
|
working_directory: ~/remix-project
|
|
|
|
steps:
|
|
- browser-tools/install-chrome
|
|
- browser-tools/install-chromedriver
|
|
- checkout
|
|
- attach_workspace:
|
|
at: .
|
|
- run: unzip ./persist/dist.zip
|
|
- restore_cache:
|
|
keys:
|
|
- v1-deps-{{ checksum "package-lock.json" }}
|
|
- run: npm run selenium-install
|
|
- run:
|
|
name: Start Selenium
|
|
command: npx selenium-standalone start
|
|
background: true
|
|
- run: ./apps/remix-ide/ci/browser_tests_plugin_api.sh
|
|
- store_test_results:
|
|
path: ./reports/tests
|
|
- store_artifacts:
|
|
path: ./reports/screenshots
|
|
|
|
deploy-remix-live:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico"
|
|
working_directory: ~/remix-project
|
|
|
|
steps:
|
|
- checkout
|
|
- run: npm install
|
|
- run: npm run downloadsolc_assets
|
|
- run: npm run build:production
|
|
- run:
|
|
name: Deploy
|
|
command: |
|
|
if [ "${CIRCLE_BRANCH}" == "remix_live" ]; then
|
|
./apps/remix-ide/ci/deploy_from_travis_remix-live.sh;
|
|
fi
|
|
|
|
publish:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
resource_class: xlarge
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico"
|
|
working_directory: ~/remix-project
|
|
|
|
steps:
|
|
- checkout
|
|
- setup_remote_docker
|
|
- restore_cache:
|
|
keys:
|
|
- v1-deps-{{ checksum "package-lock.json" }}
|
|
- run: npm run downloadsolc_assets
|
|
- run: npm run build:production
|
|
- run: ./apps/remix-ide/ci/copy_resources.sh
|
|
- run: ./apps/remix-ide/ci/publishIpfs
|
|
- run: ./apps/remix-ide/ci/build_and_publish_docker_images.sh
|
|
|
|
deploy-remix-alpha:
|
|
docker:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
resource_class: xlarge
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico"
|
|
working_directory: ~/remix-project
|
|
|
|
steps:
|
|
- checkout
|
|
- run: npm install
|
|
- run: npm run downloadsolc_assets
|
|
- run: npm 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:
|
|
# specify the version you desire here
|
|
- image: cimg/node:14.17.6-browsers
|
|
|
|
# Specify service dependencies here if necessary
|
|
# CircleCI maintains a library of pre-built images
|
|
resource_class: xlarge
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
# - image: circleci/mongo:3.4.4
|
|
environment:
|
|
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
|
|
- COMMIT_AUTHOR: "Circle CI"
|
|
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico"
|
|
working_directory: ~/remix-project
|
|
|
|
steps:
|
|
- checkout
|
|
- run: npm install
|
|
- run: npm run build:libs
|
|
- run: npm run downloadsolc_assets
|
|
- run: npm run build:production
|
|
- run:
|
|
name: Deploy
|
|
command: |
|
|
if [ "${CIRCLE_BRANCH}" == "remix_beta" ]; then
|
|
./apps/remix-ide/ci/deploy_from_travis_remix-beta.sh;
|
|
fi
|
|
|
|
workflows:
|
|
version: 2
|
|
build_all:
|
|
jobs:
|
|
- build
|
|
- lint:
|
|
requires:
|
|
- build
|
|
- remix-libs:
|
|
requires:
|
|
- build
|
|
- remix-ide-plugin-api:
|
|
requires:
|
|
- build
|
|
- remix-ide-chrome-1:
|
|
requires:
|
|
- build
|
|
- remix-ide-chrome-2:
|
|
requires:
|
|
- build
|
|
- remix-ide-firefox-1:
|
|
requires:
|
|
- build
|
|
- remix-ide-firefox-2:
|
|
requires:
|
|
- build
|
|
- remix-ide-run-deploy:
|
|
requires:
|
|
- build
|
|
- publish:
|
|
requires:
|
|
- build
|
|
- deploy-remix-live:
|
|
requires:
|
|
- lint
|
|
- remix-ide-chrome-1
|
|
- remix-ide-chrome-2
|
|
- remix-ide-firefox-1
|
|
- remix-ide-firefox-2
|
|
- remix-ide-run-deploy
|
|
- remix-ide-plugin-api
|
|
filters:
|
|
branches:
|
|
only: remix_live
|
|
- deploy-remix-alpha:
|
|
requires:
|
|
- lint
|
|
- remix-ide-chrome-1
|
|
- remix-ide-chrome-2
|
|
- remix-ide-firefox-1
|
|
- remix-ide-firefox-2
|
|
- remix-ide-run-deploy
|
|
- remix-ide-plugin-api
|
|
filters:
|
|
branches:
|
|
only: master
|
|
- deploy-remix-beta:
|
|
requires:
|
|
- lint
|
|
- remix-ide-chrome-1
|
|
- remix-ide-chrome-2
|
|
- remix-ide-firefox-1
|
|
- remix-ide-firefox-2
|
|
- remix-ide-run-deploy
|
|
- remix-ide-plugin-api
|
|
filters:
|
|
branches:
|
|
only: remix_beta
|
|
|
|
|