From f6760acf3d7c2df3fa9a80383b0bcc4b7d31f8c9 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Tue, 20 Sep 2022 16:32:19 +0200 Subject: [PATCH] config --- .circleci/config.yml | 70 +++++--------------- apps/remix-ide/src/app/files/fileProvider.js | 1 + 2 files changed, 18 insertions(+), 53 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9ca4318f21..3886af890b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,20 +6,16 @@ parameters: default: false orbs: browser-tools: circleci/browser-tools@1.4.0 - node: circleci/node@5.0.2 jobs: build: docker: - - image: cimg/base:current + - image: cimg/node:14.17.6-browsers resource_class: xlarge working_directory: ~/remix-project steps: - checkout - - node/install: - install-yarn: true - node-version: "v14.17.6" - restore_cache: keys: - v1-deps-{{ checksum "yarn.lock" }} @@ -38,16 +34,13 @@ jobs: - "persist" lint: docker: - - image: cimg/base:current + - image: cimg/node:14.17.6-browsers resource_class: xlarge 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" }} @@ -57,16 +50,13 @@ jobs: command: ./apps/remix-ide/ci/lint.sh remix-libs: docker: - - image: cimg/base:current + - image: cimg/node:14.17.6-browsers resource_class: xlarge working_directory: ~/remix-project steps: - checkout - - node/install: - install-yarn: true - node-version: "v14.17.6" - attach_workspace: at: . - run: unzip ./persist/dist.zip @@ -79,7 +69,7 @@ jobs: remix-ide-browser: docker: - - image: cimg/base:current + - image: cimg/node:14.17.6-browsers resource_class: xlarge working_directory: ~/remix-project @@ -92,9 +82,6 @@ jobs: type: string parallelism: 95 steps: - - node/install: - install-yarn: true - node-version: "v14.17.6" - browser-tools/install-browser-tools - run: command: | @@ -117,14 +104,8 @@ jobs: - 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 + name: Start Selenium + command: java -jar /usr/local/bin/selenium.jar background: true - run: ./apps/remix-ide/ci/<< parameters.script >> << parameters.browser >> - store_test_results: @@ -135,7 +116,7 @@ jobs: remix-test-plugins: docker: - - image: cimg/base:current + - image: cimg/node:14.17.6-browsers resource_class: xlarge working_directory: ~/remix-project @@ -144,16 +125,14 @@ jobs: 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: @@ -163,29 +142,20 @@ jobs: keys: - v1-deps-{{ checksum "yarn.lock" }} - run: yarn + - run: npx nx build vyper - 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: npx nx build vyper - run: ./apps/remix-ide/ci/<< parameters.script >> - store_test_results: path: ./reports/tests - store_artifacts: path: ./reports/screenshots - - - deploy-remix-live: docker: - - image: cimg/base:current + - image: cimg/node:14.17.6-browsers resource_class: xlarge @@ -212,7 +182,7 @@ jobs: deploy-remix-alpha: docker: - - image: cimg/base:current + - image: cimg/node:14.17.6-browsers resource_class: xlarge @@ -224,9 +194,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 @@ -239,7 +206,7 @@ jobs: deploy-remix-beta: docker: - - image: cimg/base:current + - image: cimg/node:14.17.6-browsers resource_class: xlarge @@ -251,9 +218,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 diff --git a/apps/remix-ide/src/app/files/fileProvider.js b/apps/remix-ide/src/app/files/fileProvider.js index fe8c803bf3..3bee5cf957 100644 --- a/apps/remix-ide/src/app/files/fileProvider.js +++ b/apps/remix-ide/src/app/files/fileProvider.js @@ -151,6 +151,7 @@ class FileProvider { // this will not add a folder as readonly but keep the original url to be able to restore it later async addExternal (path, content, url) { + console.log('addExternal', path) if (url) this.addNormalizedName(path, url) return await this.set(path, content) }