diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f3a4753aacc62ef04ecdd554cd43f3a4d349ee24..3174165c88126b736e4e34c29dc75314810f9bb3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,23 @@ image: name: codeception/codeception - entrypoint: ["/bin/sh", "-c"] + entrypoint: [""] stages: - build - test - deploy +cache: + paths: + - vendor/ build-job: # Le job se lance dans la phase de build stage: build script: - echo "Building the project" - composer install # On installe les dépendances - - composer remove phpunit/phpunit --dev # On supprime phpunit - - composer update # On met à jour les dépendances - - composer require "codeception/codeception" --dev # On installe codeception - - php vendor/bin/codecept bootstrap # On initialise codeception - echo "Build done" - unit-test-job: # Le job se lance dans la phase de test stage: test script: