HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/node_modules/protractor/.circleci/config.yml
version: 2
jobs:
  build:
    docker:
      - image: circleci/node:10.16-browsers
        environment:
          # Fix issue with selenium-server in containers.
          # See http://github.com/SeleniumHQ/docker-selenium/issues/87
          DBUS_SESSION_BUS_ADDRESS: /dev/null
          CHROME_REVISION: 652421
          CHROMEDRIVER_VERSION: 75.0.3770.90
          # To find this revision number:
          # 1. Find the exact chrome version you want: https://en.wikipedia.org/wiki/Google_Chrome_version_history
          # 2. Put that version in this tool: https://omahaproxy.appspot.com/
          # 3. Take the bumber from "Branch Base Position"
          # 4. Look for the closest number to that revision in the snapshots: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/
          # CHROME 74 - 638880
          # CHROME 75 - 652421 
          # CHROME 79 - 706915
    steps:
      - checkout
      - run:
          name: Install Dependencies
          command: |
            sudo apt-get update
            sudo apt-get install python-pip openjdk-8-jdk tcpdump

            # Install a specific version of Chrome (not latest)
            sudo rm -rf /opt/google
            sudo rm /usr/local/bin/chromedriver
            wget -q -O chrome.zip https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/${CHROME_REVISION}/chrome-linux.zip 
            unzip chrome.zip
            rm chrome.zip
            sudo ln -sf ${PWD}/chrome-linux/chrome /usr/bin/chromium 
            sudo ln -sf /usr/bin/chromium /usr/bin/chromium-browser 
            sudo groupadd -r chrome && sudo useradd -r -g chrome -G audio,video chrome 
            sudo mkdir -p /home/chrome/reports 
            sudo chown -R chrome:chrome /home/chrome 

      - restore_cache:
          key: node_modules-{{ .Branch }}-{{ checksum "package-lock.json" }}

      - run:
          name: NPM Install
          command: |
            npm i
            cd testapp && npm i

      - save_cache:
          key: node_modules-{{ .Branch }}-{{ checksum "package-lock.json" }}
          paths:
            - "node_modules"
            - "testapp/node_modules"

      - run:
          name: Lint
          command: ./node_modules/.bin/gulp lint

      - run:
          name: Selenium Start
          background: true
          command: |
            ./node_modules/.bin/webdriver-manager update --versions.standalone=3.141.59 --versions.chrome=${CHROMEDRIVER_VERSION} --versions.gecko=v0.26.0
            sudo cp ./node_modules/webdriver-manager/selenium/chromedriver_${CHROMEDRIVER_VERSION} /usr/local/bin/chromedriver
            ./node_modules/.bin/webdriver-manager start --versions.standalone=3.141.59 --versions.chrome=${CHROMEDRIVER_VERSION} --versions.gecko=v0.26.0

      - run:
          name: TestApp Start
          background: true
          command: |
            npm start

      - run:
          name: Test
          command: npm test