rene-s/Seafile-PHP-SDK

View on GitHub
.gitlab-ci.yml

Summary

Maintainability
Test Coverage
stages:
  - test

cache:
  paths:
    - vendor
    - /var/cache/apt/archives

variables:
  DOCKER_DRIVER: overlay2

before_script:
  - apt-get update -yqq
  - apt-get install git iputils-ping wget -yqq
  - ping -c 1 1.1.1.1 || true
  - ping -c 1 example.com || true
  - ping -c 1 github.com || true
  - ping -c 1 dl-cdn.alpinelinux.org || true
  - curl -sS https://getcomposer.org/installer | php
  - mv composer.phar /usr/local/bin/composer
  - curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
  - chmod +x /usr/local/bin/phpunit /usr/local/bin/composer
  - mv /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
  - echo "memory_limit = -1" > /usr/local/etc/php/conf.d/test.ini

test:php-8.2:
  stage: test
  image: php:8.2
  script:
    - bash ./bin/prepare_tests.sh && bash ./bin/run_tests.sh
  tags:
    - sdo-docker-runner

test:php-8.1:
  stage: test
  image: php:8.1
  script:
    - bash ./bin/prepare_tests.sh && bash ./bin/run_tests.sh
  tags:
    - sdo-docker-runner