diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 355524fa4..2964b7db6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ # Select what we should cache between builds cache: paths: - - /vendor/ + - vendor/ - .cache - node_modules/ @@ -75,34 +75,24 @@ code_style: phpstan_tests: stage: Tests image: chill/base-image:8.3-edge + dependencies: + - build variables: COMPOSER_MEMORY_LIMIT: 3G before_script: - bin/console cache:clear --env=dev script: - composer exec phpstan -- analyze --memory-limit=3G - cache: - paths: - - .cache/ - artifacts: - expire_in: 1 day - paths: - - vendor/ rector_tests: stage: Tests image: chill/base-image:8.3-edge + dependencies: + - build before_script: - bin/console cache:clear --env=dev script: - composer exec rector -- process --dry-run - cache: - paths: - - .cache/ - artifacts: - expire_in: 1 day - paths: - - vendor/ lint: stage: Tests @@ -133,6 +123,8 @@ lint: unit_tests: stage: Tests image: chill/base-image:8.3-edge + dependencies: + - build variables: COMPOSER_MEMORY_LIMIT: 3G before_script: @@ -143,10 +135,6 @@ unit_tests: - php bin/console doctrine:fixtures:load -n --env=test script: - composer exec phpunit -- --colors=never --exclude-group dbIntensive,openstack-integration - artifacts: - expire_in: 1 day - paths: - - vendor/ release: stage: Deploy