pull/2868/head
filip mertens 2 years ago
parent ef557abcbd
commit eb9d036891
  1. 7
      .circleci/config.yml
  2. 6
      apps/remix-ide/ci/browser_test.sh

@ -79,6 +79,8 @@ jobs:
type: string type: string
script: script:
type: string type: string
group:
type: string
parallelism: 95 parallelism: 95
steps: steps:
- browser-tools/install-browser-tools - browser-tools/install-browser-tools
@ -105,12 +107,11 @@ jobs:
- run: yarn - run: yarn
- run: yarn run downloadsolc_assets_e2e && yarn run downloadsolc_assets_dist - run: yarn run downloadsolc_assets_e2e && yarn run downloadsolc_assets_dist
- run: ls -la ./dist/apps/remix-ide/assets/js - run: ls -la ./dist/apps/remix-ide/assets/js
- run: cp dist/apps/remix-ide/assets/version.json "${CIRCLE_INTERNAL_TASK_DATA}/version.json"
- run: - run:
name: Start Selenium name: Start Selenium
command: java -jar /usr/local/bin/selenium.jar command: java -jar /usr/local/bin/selenium.jar
background: true background: true
- run: ./apps/remix-ide/ci/<< parameters.script >> << parameters.browser >> - run: ./apps/remix-ide/ci/<< parameters.script >> << parameters.browser >> << parameters.group >>
- store_test_results: - store_test_results:
path: ./reports/tests path: ./reports/tests
- store_artifacts: - store_artifacts:
@ -243,6 +244,7 @@ workflows:
parts: ["1"] parts: ["1"]
browser: ["chrome", "firefox"] browser: ["chrome", "firefox"]
script: ["flaky.sh"] script: ["flaky.sh"]
group: ["nogroup"]
build_all: build_all:
unless: << pipeline.parameters.run_flaky_tests >> unless: << pipeline.parameters.run_flaky_tests >>
jobs: jobs:
@ -267,6 +269,7 @@ workflows:
parts: ["1"] parts: ["1"]
browser: ["chrome", "firefox"] browser: ["chrome", "firefox"]
script: ["browser_test.sh"] script: ["browser_test.sh"]
group: ["a-c","d-f","g-m","n-r","s","t-z"]
- deploy-remix-live: - deploy-remix-live:
requires: requires:
- lint - lint

@ -14,10 +14,10 @@ yarn run remixd &
sleep 5 sleep 5
yarn run build:e2e yarn run build:e2e
grep -IRiL "@disabled" "dist/apps/remix-ide-e2e/src/tests" | grep "\.spec\|\.test" | xargs -I {} basename {} .js | circleci tests split --split-by=timings grep -IRiL "@disabled" "dist/apps/remix-ide-e2e/src/tests" | grep "\.spec\|\.test" | xargs -I {} basename {} .test.js | | grep-E '\b[$2]'
TESTFILES=$(grep -IRiL "@disabled" "dist/apps/remix-ide-e2e/src/tests" | grep "\.spec\|\.test" | xargs -I {} basename {} .js | circleci tests split --split-by=timings ) TESTFILES=$(grep -IRiL "@disabled" "dist/apps/remix-ide-e2e/src/tests" | grep "\.spec\|\.test" | xargs -I {} basename {} .test.js | grep-E '\b[$2]' | circleci tests split --split-by=timings )
for TESTFILE in $TESTFILES; do for TESTFILE in $TESTFILES; do
npx nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/${TESTFILE}.js --env=$1 || TEST_EXITCODE=1 npx nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/${TESTFILE}.test.js --env=$1 || TEST_EXITCODE=1
done done
echo "$TEST_EXITCODE" echo "$TEST_EXITCODE"

Loading…
Cancel
Save