@ -1,7 +1,4 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version : 2.1
parameters:
run_flaky_tests:
@ -9,28 +6,16 @@ parameters:
default : false
orbs:
browser-tools : circleci/browser-tools@1.4.0
node : circleci/node@5.0.2
jobs:
build:
docker:
# specify the version you desire here
- image : cimg/base:current
- 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
- node/install:
install-yarn : true
node-version : "v14.17.6"
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
@ -39,37 +24,22 @@ jobs:
key : v1-deps-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run : yarn run downloadsolc_assets
- run : npx nx build remix-ide
- run : npx nx build remix-ide-e2e-src-local-plugin
- run : yarn run build:libs
- run : mkdir persist && zip -r persist/dist.zip dist
- run : NX_BIN_URL=http://127.0.0.1:8080/assets/js NX_WASM_URL=http://127.0.0.1:8080/assets/js yarn build:production
- run : npx nx build remix-ide-e2e-src-local-plugin & yarn run build:libs
- run : mkdir persist && zip -0 -r persist/dist.zip dist
- persist_to_workspace:
root : .
paths:
- "persist"
lint:
docker:
# specify the version you desire here
- image : cimg/base:current
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
- image : cimg/node:14.17.6-browsers
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
- node/install:
install-yarn : true
node-version : "v14.17.6"
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
@ -79,25 +49,13 @@ jobs:
command : ./apps/remix-ide/ci/lint.sh
remix-libs:
docker:
# specify the version you desire here
- image : cimg/base:current
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
- image : cimg/node:14.17.6-browsers
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
- node/install:
install-yarn : true
node-version : "v14.17.6"
- attach_workspace:
at : .
- run : unzip ./persist/dist.zip
@ -108,368 +66,98 @@ jobs:
- run : cd dist/libs/remix-tests && yarn
- run : yarn run test:libs
remix-ide-chrome :
remix-ide-browser :
docker:
# specify the version you desire here
- image : cimg/base:current
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
- image : cimg/node:14.17.6-browsers
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 : 95
parameters:
browser:
type : string
script:
type : string
job:
type : string
jobsize:
type : string
parallelism : 10
steps:
- node/install:
install-yarn : true
node-version : "v14.17.6"
- browser-tools/install-chrome
- browser-tools/install-chromedriver
- browser-tools/install-browser-tools
- run:
command : |
google-chrome --version
firefox --version
geckodriver --version
chromedriver --version
name : Check install
- checkout
- attach_workspace:
at : .
- run : unzip ./persist/dist.zip
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
- run : yarn
- run :
name : Java
command : sudo apt update && sudo apt install default-jre
- run:
name : Install Selenium
command : yarn run selenium-install
- run:
name : Run Selenium
command : yarn run selenium
background : true
- run : ./apps/remix-ide/ci/browser_test.sh chrome
- store_test_results:
path : ./reports/tests
- store_artifacts:
path : ./reports/screenshots
flaky-chrome:
docker:
# specify the version you desire here
- image : cimg/base:current
# 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 : 95
steps:
- node/install:
install-yarn : true
node-version : "v14.17.6"
- browser-tools/install-chrome
- browser-tools/install-chromedriver
java -jar /usr/local/bin/selenium.jar --version
- run:
name : Check out previous test metadata
command : |
google-chrome --version
chromedriver --version
name : Check install
cat "${CIRCLE_INTERNAL_TASK_DATA}/circle-test-results/results.json" | jq .
ls -la "${CIRCLE_INTERNAL_TASK_DATA}/"
- checkout
- attach_workspace:
at : .
- run : unzip ./persist/dist.zip
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
- run : yarn
- run :
name : Java
command : sudo apt update && sudo apt install default-jre
- run:
name : Install Selenium
command : yarn run selenium-install
- run:
name : Run Selenium
command : yarn run selenium
background : true
- run : ./apps/remix-ide/ci/flaky.sh chrome
- store_test_results:
path : ./reports/tests
- store_artifacts:
path : ./reports/screenshots
remix-ide-firefox:
docker:
# specify the version you desire here
- image : cimg/base:current
# 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 : 95
steps:
- node/install:
install-yarn : true
node-version : "v14.17.6"
- browser-tools/install-firefox
- browser-tools/install-geckodriver
- run:
command : |
firefox --version
geckodriver --version
name : Check install
- checkout
- attach_workspace:
at : .
- run : unzip ./persist/dist.zip
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
- run : yarn
- run : yarn run downloadsolc_assets_e2e && yarn run downloadsolc_assets_dist
- run : ls -la ./dist/apps/remix-ide/assets/js
- run:
name : Java
command : sudo apt update && sudo apt install default-jre
- run:
name : Install Selenium
command : yarn run selenium-install
- run:
name : Run Selenium
command : yarn run selenium
name : Start Selenium
command : java -jar /usr/local/bin/selenium.jar
background : true
- run : ./apps/remix-ide/ci/browser_test.sh firefox
- run : ./apps/remix-ide/ci/<< parameters.script >> << parameters.browser >> << parameters.jobsize >> << parameters.job >>
- store_test_results:
path : ./reports/tests
- store_artifacts:
path : ./reports/screenshots
flaky-firefox:
docker:
# specify the version you desire here
- image : cimg/base:current
# 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 : 95
tests-passed:
machine:
image : ubuntu-2004:202010-01
steps:
- node/install:
install-yarn : true
node-version : "v14.17.6"
- browser-tools/install-firefox
- browser-tools/install-geckodriver
- run:
command : |
firefox --version
geckodriver --version
name : Check install
- checkout
- attach_workspace:
at : .
- run : unzip ./persist/dist.zip
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
- run : yarn
- run :
name : Java
command : sudo apt update && sudo apt install default-jre
- run:
name : Install Selenium
command : yarn run selenium-install
- run:
name : Run Selenium
command : yarn run selenium
background : true
- run : ./apps/remix-ide/ci/flaky.sh firefox
- store_test_results:
path : ./reports/tests
- store_artifacts:
path : ./reports/screenshots
- run : echo done
remix-ide-vyper-plugin :
remix-test-plugins:
docker:
# specify the version you desire here
- image : cimg/base:current
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
- image : cimg/node:14.17.6-browsers
resource_class:
xlarge
# - image: circleci/mongo:3.4.4
environment:
- COMMIT_AUTHOR_EMAIL : "yann@ethereum.org"
- COMMIT_AUTHOR : "Circle CI"
working_directory : ~/remix-project
parameters:
script:
type : string
parallelism : 10
steps:
- node/install:
install-yarn : true
node-version : "v14.17.6"
- browser-tools/install-chrome
- browser-tools/install-chromedriver
- browser-tools/install-browser-tools
- run:
command : |
google-chrome --version
firefox --version
geckodriver --version
chromedriver --version
java -jar /usr/local/bin/selenium.jar --version
name : Check install
- checkout
- attach_workspace:
at : .
- run : unzip ./persist/dist.zip
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
- run : yarn
- run :
name : Java
command : sudo apt update && sudo apt install default-jre
- run:
name : Install Selenium
command : yarn run selenium-install
- run:
name : Run Selenium
command : yarn run selenium
background : true
- run : npx nx build vyper
- run : ./apps/remix-ide/ci/browser_tests_vyper_plugin.sh
- store_test_results:
path : ./reports/tests
- store_artifacts:
path : ./reports/screenshots
remix-ide-etherscan-plugin:
docker:
# specify the version you desire here
- image : cimg/base:current
# 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 : 10
steps:
- node/install:
install-yarn : true
node-version : "v14.17.6"
- browser-tools/install-chrome
- browser-tools/install-chromedriver
- run:
command : |
google-chrome --version
chromedriver --version
name : Check install
- checkout
- attach_workspace:
at : .
- run : unzip ./persist/dist.zip
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
- run : yarn
- run :
name : Java
command : sudo apt update && sudo apt install default-jre
- run:
name : Install Selenium
command : yarn run selenium-install
- run:
name : Run Selenium
command : yarn run selenium
background : true
- run : npx nx build etherscan
- run : ./apps/remix-ide/ci/browser_tests_etherscan_plugin.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/base:current
# 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 : 10
steps:
- node/install:
install-yarn : true
node-version : "v14.17.6"
- browser-tools/install-chrome
- browser-tools/install-chromedriver
- run:
command : |
google-chrome --version
chromedriver --version
name : Check install
- checkout
- attach_workspace:
at : .
- run : unzip ./persist/dist.zip
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
- run : yarn
- run :
name : Java
command : sudo apt update && sudo apt install default-jre
- run:
name : Install Selenium
command : yarn run selenium-install
- run : yarn run downloadsolc_assets_e2e && yarn run downloadsolc_assets_dist
- run:
name : Run Selenium
command : yarn run selenium
name : Start Selenium
command : java -jar /usr/local/bin/selenium.jar
background : true
- run : ./apps/remix-ide/ci/browser_tests_plugin_api.sh
- run : ./apps/remix-ide/ci/<< parameters.script >>
- store_test_results:
path : ./reports/tests
- store_artifacts:
@ -477,15 +165,10 @@ jobs:
deploy-remix-live:
docker:
# specify the version you desire here
- image : cimg/base:current
- 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"
@ -494,9 +177,6 @@ jobs:
steps:
- checkout
- node/install:
install-yarn : true
node-version : "v14.17.6"
- run : yarn
- run : yarn run downloadsolc_assets
- run : yarn run build:production
@ -509,15 +189,10 @@ jobs:
deploy-remix-alpha:
docker:
# specify the version you desire here
- image : cimg/base:current
- 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"
@ -526,9 +201,6 @@ jobs:
steps:
- checkout
- node/install:
install-yarn : true
node-version : "v14.17.6"
- run : yarn
- run : yarn run downloadsolc_assets
- run : yarn run build:production
@ -541,15 +213,10 @@ jobs:
deploy-remix-beta:
docker:
# specify the version you desire here
- image : cimg/base:current
- 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"
@ -558,9 +225,6 @@ jobs:
steps:
- checkout
- node/install:
install-yarn : true
node-version : "v14.17.6"
- run : yarn
- run : yarn run build:libs
- run : yarn run downloadsolc_assets
@ -577,12 +241,15 @@ workflows:
when : << pipeline.parameters.run_flaky_tests >>
jobs:
- build
- flaky-chrome:
requires:
- build
- flaky-firefox:
- remix-ide-browser:
requires:
- build
matrix:
parameters:
browser : [ "chrome" , "firefox" ]
script : [ "flaky.sh" ]
job : [ "nogroup" ]
jobsize : [ "1" ]
build_all:
unless : << pipeline.parameters.run_flaky_tests >>
jobs:
@ -593,30 +260,33 @@ workflows:
- remix-libs:
requires:
- build
- remix-ide-plugin-api:
requires:
- build
- remix-ide-vyper-plugin:
requires:
- build
- remix-ide-etherscan-plugin:
- remix-test-plugins:
requires:
- build
- remix-ide-chrome:
matrix:
parameters:
script : [ "browser_tests_plugin_api.sh" , "browser_tests_etherscan_plugin.sh" , "browser_tests_vyper_plugin.sh" ]
- remix-ide-browser:
requires:
- build
- remix-ide-firefox:
matrix:
parameters:
browser : [ "chrome" , "firefox" ]
script : [ "browser_test.sh" ]
job : [ "0" , "1" , "2" , "3" , "4" , "5" , "6" , "7" , "8" , "9" ]
jobsize : [ "10" ]
- tests-passed:
requires:
- build
- lint
- remix-libs
- remix-ide-browser
- remix-test-plugins
- deploy-remix-live:
requires:
- lint
- remix-libs
- remix-ide-chrome
- remix-ide-firefox
- remix-ide-plugin-api
- remix-ide-vyper-plugin
- remix-ide-etherscan-plugin
- remix-ide-browser
- remix-test-plugins
filters:
branches:
only : remix_live
@ -624,11 +294,8 @@ workflows:
requires:
- lint
- remix-libs
- remix-ide-chrome
- remix-ide-firefox
- remix-ide-plugin-api
- remix-ide-vyper-plugin
- remix-ide-etherscan-plugin
- remix-ide-browser
- remix-test-plugins
filters:
branches:
only : master
@ -636,11 +303,8 @@ workflows:
requires:
- lint
- remix-libs
- remix-ide-chrome
- remix-ide-firefox
- remix-ide-plugin-api
- remix-ide-vyper-plugin
- remix-ide-etherscan-plugin
- remix-ide-browser
- remix-test-plugins
filters:
branches:
only : remix_beta