From de6ee884bcb530875b178b32331a3a695d4a1661 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Sat, 16 Oct 2021 15:48:56 +0200 Subject: [PATCH] ci cnfig --- .circleci/config.yml | 11 +++++++++-- apps/remix-ide/ci/browser_tests_plugin_api.sh | 5 ++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2ba31888ac..756829d2f2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -276,11 +276,18 @@ jobs: - run: npm install - run: npx nx build remix-ide --with-deps - run: npx nx build remix-ide-e2e-src-local-plugin + - run: + name: Download Selenium + command: ./node_modules/.bin/selenium-standalone install --drivers.chrome.version=2.39 --drivers.chrome.baseURL=https://chromedriver.storage.googleapis.com + - run: + name: Start Selenium + command: ./node_modules/.bin/selenium-standalone start --drivers.chrome.version=2.39 --drivers.chrome.baseURL=https://chromedriver.storage.googleapis.com + background: true - run: ./apps/remix-ide/ci/browser_tests_plugin_api.sh - store_test_results: - path: /tmp/test-results + path: ./reports/tests - store_artifacts: - path: /tmp/artifacts + path: ./reports/screenshots deploy-remix-live: docker: # specify the version you desire here diff --git a/apps/remix-ide/ci/browser_tests_plugin_api.sh b/apps/remix-ide/ci/browser_tests_plugin_api.sh index e024d72c31..8b3ef4eeb3 100755 --- a/apps/remix-ide/ci/browser_tests_plugin_api.sh +++ b/apps/remix-ide/ci/browser_tests_plugin_api.sh @@ -8,7 +8,10 @@ TEST_EXITCODE=0 npm run serve & npx nx serve remix-ide-e2e-src-local-plugin & -sleep 5 & + +sleep 5 + +npm run build:e2e npm run nightwatch_local_pluginApi || TEST_EXITCODE=1 echo "$TEST_EXITCODE"