pull/2868/head
filip mertens 2 years ago
parent a26384e7b7
commit 9f4b496212
  1. 168
      .circleci/config.yml
  2. 2
      apps/remix-ide-e2e/src/tests/usingWebWorker.test.ts

@ -1,27 +1,19 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1 version: 2.1
parameters: parameters:
run_flaky_tests: run_flaky_tests:
type: boolean type: boolean
default: true default: false
orbs: orbs:
browser-tools: circleci/browser-tools@1.4.0 browser-tools: circleci/browser-tools@1.4.0
node: circleci/node@5.0.2 node: circleci/node@5.0.2
jobs: jobs:
build: build:
docker: docker:
# specify the version you desire here
- image: cimg/base:current - 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: resource_class:
xlarge xlarge
# - image: circleci/mongo:3.4.4
working_directory: ~/remix-project working_directory: ~/remix-project
steps: steps:
- checkout - checkout
@ -47,15 +39,9 @@ jobs:
- "persist" - "persist"
lint: lint:
docker: docker:
# specify the version you desire here
- image: cimg/base:current - 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: resource_class:
xlarge xlarge
# - image: circleci/mongo:3.4.4
working_directory: ~/remix-project working_directory: ~/remix-project
parallelism: 35 parallelism: 35
steps: steps:
@ -72,15 +58,9 @@ jobs:
command: ./apps/remix-ide/ci/lint.sh command: ./apps/remix-ide/ci/lint.sh
remix-libs: remix-libs:
docker: docker:
# specify the version you desire here
- image: cimg/base:current - 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: resource_class:
xlarge xlarge
# - image: circleci/mongo:3.4.4
working_directory: ~/remix-project working_directory: ~/remix-project
steps: steps:
@ -149,21 +129,15 @@ jobs:
path: ./reports/screenshots path: ./reports/screenshots
remix-ide-vyper-plugin: remix-test-plugins:
docker: docker:
# specify the version you desire here
- image: cimg/base:current - 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: resource_class:
xlarge xlarge
# - image: circleci/mongo:3.4.4
environment:
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
- COMMIT_AUTHOR: "Circle CI"
working_directory: ~/remix-project working_directory: ~/remix-project
parameters:
script:
type: string
parallelism: 10 parallelism: 10
steps: steps:
- node/install: - node/install:
@ -196,128 +170,21 @@ jobs:
command: yarn run selenium command: yarn run selenium
background: true background: true
- run: npx nx build vyper - run: npx nx build vyper
- run: ./apps/remix-ide/ci/browser_tests_vyper_plugin.sh - run: ./apps/remix-ide/ci/<< parameters.script >>
- store_test_results: - store_test_results:
path: ./reports/tests path: ./reports/tests
- store_artifacts: - store_artifacts:
path: ./reports/screenshots 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:
name: Run Selenium
command: yarn run selenium
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: deploy-remix-live:
docker: docker:
# specify the version you desire here
- image: cimg/base:current - 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: resource_class:
xlarge xlarge
# - image: circleci/mongo:3.4.4
environment: environment:
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org" - COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
- COMMIT_AUTHOR: "Circle CI" - COMMIT_AUTHOR: "Circle CI"
@ -341,15 +208,10 @@ jobs:
deploy-remix-alpha: deploy-remix-alpha:
docker: docker:
# specify the version you desire here
- image: cimg/base:current - image: cimg/base:current
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
resource_class: resource_class:
xlarge xlarge
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
environment: environment:
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org" - COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
- COMMIT_AUTHOR: "Circle CI" - COMMIT_AUTHOR: "Circle CI"
@ -373,15 +235,10 @@ jobs:
deploy-remix-beta: deploy-remix-beta:
docker: docker:
# specify the version you desire here
- image: cimg/base:current - image: cimg/base:current
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
resource_class: resource_class:
xlarge xlarge
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
environment: environment:
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org" - COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
- COMMIT_AUTHOR: "Circle CI" - COMMIT_AUTHOR: "Circle CI"
@ -427,15 +284,12 @@ workflows:
- remix-libs: - remix-libs:
requires: requires:
- build - build
- remix-ide-plugin-api: - remix-test-plugins:
requires:
- build
- remix-ide-vyper-plugin:
requires:
- build
- remix-ide-etherscan-plugin:
requires: requires:
- build - build
matrix:
parameters:
script: ["browser_tests_plugin_api.sh", "browser_tests_etherscan_plugin.sh", "browser_tests_vyper_plugin.sh"]
- remix-ide-browser: - remix-ide-browser:
requires: requires:
- build - build

@ -27,7 +27,7 @@ module.exports = {
'@sources': function () { '@sources': function () {
return sources return sources
}, },
'Using Web Worker #group1 #flaky': function (browser: NightwatchBrowser) { 'Using Web Worker #group1': function (browser: NightwatchBrowser) {
browser browser
.waitForElementVisible('[for="autoCompile"]') .waitForElementVisible('[for="autoCompile"]')
.click('[for="autoCompile"]') .click('[for="autoCompile"]')

Loading…
Cancel
Save