From 388a76bcc713efa13e119aca2c292d8ea0b62780 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Thu, 9 Nov 2023 14:41:48 +0100 Subject: [PATCH] Remove Circle CI configuration --- .circleci/config.yml | 154 ------------------------------------------- 1 file changed, 154 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 7a36eddc..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,154 +0,0 @@ -# Environment variables to be defined in the build configuration: -# AUTH0_TEST_CLIENT_ID = Client id to use in test -# AUTH0_TEST_DOMAIN = Domain to use in test -# AUTH0_TEST_AUDIENCE = API Audience to use in test - -# Jobs and Workflows -version: 2.1 - -orbs: - node: circleci/node@5.1.0 - docker: circleci/docker@2.2.0 - browser-tools: circleci/browser-tools@1.4.6 - -jobs: - checkout: - docker: - - image: cimg/node:lts - steps: - - checkout - - run: git clone https://github.com/auth0-samples/spa-quickstarts-tests scripts - - persist_to_workspace: - root: ~/ - paths: - - project - - scripts - sample-01: - parameters: - app-directory: - type: string - default: "Sample-01" - description: "The root directory of the application to run" - docker: - - image: cimg/node:18.16-browsers - environment: - - AUTH0_CFG: <>/auth_config.json - - AUTH0_EXAMPLE_CFG: <>/auth_config.json.example - steps: - - node/install: - install-yarn: false - - browser-tools/install-chrome - - browser-tools/install-chromedriver - - run: - command: | - google-chrome --version - chromedriver --version - name: Check install - - attach_workspace: - at: ~/ - - run: - name: Replace Auth0 test credentials - command: | - sed \ - -e "s/{DOMAIN}/$AUTH0_TEST_DOMAIN/g" \ - -e "s/{CLIENT_ID}/$AUTH0_TEST_CLIENT_ID/g" \ - -e "s/{API_IDENTIFIER}/$AUTH0_TEST_API_IDENTIFIER/g" \ - $AUTH0_EXAMPLE_CFG > $AUTH0_CFG - - setup_remote_docker: - version: 19.03.13 - - node/install-packages: - pkg-manager: npm - app-dir: <> - with-cache: false - - run: - name: Run unit tests - working_directory: <> - command: npm run test:ci - login: - parameters: - app-directory: - type: string - default: "Sample-01" - description: "The root directory of the application to run" - docker: - - image: cimg/node:18.16-browsers - environment: - - AUTH0_CFG: <>/auth_config.json - - AUTH0_EXAMPLE_CFG: <>/auth_config.json.example - - SAMPLE_PATH: <> - steps: - - node/install: - install-yarn: false - - browser-tools/install-chrome - - browser-tools/install-chromedriver - - run: - command: | - google-chrome --version - chromedriver --version - name: Check install - - attach_workspace: - at: ~/ - - run: - name: Replace Auth0 test credentials - command: | - sed \ - -e "s/{DOMAIN}/$AUTH0_TEST_DOMAIN/g" \ - -e "s/{CLIENT_ID}/$AUTH0_TEST_CLIENT_ID/g" \ - -e "s/{API_IDENTIFIER}/$AUTH0_TEST_API_IDENTIFIER/g" \ - $AUTH0_EXAMPLE_CFG > $AUTH0_CFG - - setup_remote_docker: - version: 19.03.13 - - run: - name: Build pull request - command: | - docker build -t $CIRCLE_JOB ./$SAMPLE_PATH - docker run -d -p 4200:4200 --name $CIRCLE_SHA1 $CIRCLE_JOB - - run: - name: Wait for app to be available - command: | - sleep 10 - docker run --network host --rm appropriate/curl --retry 8 --retry-connrefused -v localhost:4200 - - run: - name: Run tests - command: | - docker create --env "SAMPLE_PORT=4200" --network host --name tester codeceptjs/codeceptjs codeceptjs run-multiple --all --steps - docker cp $(pwd)/lock_login_test.js tester:/tests/lock_login_test.js - docker cp $(pwd)/codecept.conf.js tester:/tests/codecept.conf.js - docker start -i tester - working_directory: scripts - - run: - name: Copy app container logs - command: | - mkdir -p /tmp/out - docker logs $CIRCLE_SHA1 > /tmp/out/app_logs.log - docker cp tester:/tests/out /tmp/ - when: on_fail - - store_artifacts: - path: /tmp/out -workflows: - version: 2 - quickstarts_login: - jobs: - - checkout: - context: Quickstart SPA Test - - sample-01: - app-directory: Sample-01 - requires: - - checkout - - sample-01: - name: standalone - app-directory: Standalone - requires: - - checkout - - login: - context: Quickstart SPA Test - app-directory: Sample-01 - requires: - - checkout - - login: - name: login-standalone - context: Quickstart SPA Test - app-directory: Standalone - requires: - - checkout - - login