Commit 94900291 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

gitlab-ci: test autre stratégie de cache

parent fa2e84c2
Loading
Loading
Loading
Loading
+3 −2
Changes for .gitlab-ci.yml: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -4,14 +4,15 @@ stages:
- tests
- publish

# Cache libraries in between jobs
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
  - /root/.composer/cache
  - vendor/

unit-tests:
  stage: tests
  script:
    - composer config cache-dir /root/.composer/cache
    - composer install --no-interaction --no-suggest --no-progress
    - php vendor/bin/phpunit --testsuite "unit" --filter 'ModuleOptions'