1# PHP CircleCI 2.0 configuration file 2# See: https://circleci.com/docs/2.0/language-php/ 3version: 2 4 5# Define a job to be invoked later in a workflow. 6# See: https://circleci.com/docs/2.0/configuration-reference/#jobs 7jobs: 8 build: 9 # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. 10 # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor 11 docker: 12 - image: cimg/php:8.2.8-browsers 13 14 # Add steps to the job 15 # See: https://circleci.com/docs/2.0/configuration-reference/#steps 16 steps: 17 - checkout 18 # Download and cache dependencies 19 - restore_cache: 20 keys: 21 - v1-dependencies-{{ checksum "_tests/source.sh" }} 22 - run: sudo apt-get update 23 - run: sudo apt install maven 24 - run: 25 command: ./_tests/run-tests.sh 26 environment: 27 MOZ_HEADLESS: 1 28 - save_cache: 29 key: v1-dependencies-{{ checksum "_tests/source.sh" }} 30 paths: 31 - ./_tests/dw_dl_cache/ 32 - store_artifacts: 33 path: ./_tests/selenium_screenshot.png 34