====== Intégration Continue / GitLab ======
Source: [[https://www.youtube.com/watch?v=YX_8oAL6EcY&list=PLxEJ5uJLOPDwPMziG3TY0UIZorId4fIpX&index=1|Intégration continue d’un projet Symfony 5 avec GitLab CI]]
====== Compte GitLab ======
[[https://gitlab.com/users/sign_up]]
====== Création d'un projet Symfony ======
cd /home/marc/web
symfony new monprojet --full
cd monprojet
====== Création du dépôt GitLab ======
* **GitLab** > **New** > **Create Blank Project**
git init
git remote add origin https://gitlab.com/marclebrun/monprojet.git
git add .
git commit -m "Initial commit"
git push -u origin master
====== Pipeline d'intégration continue ======
Créer un fichier **.gitlab-ci.yml** à la racine du projet.
Voir cette [[https://www.youtube.com/watch?v=YX_8oAL6EcY|vidéo]].
====== Base de données ======
Éditer le **.env** pour spécifier une DB locale.
DATABASE_URL="mysql://root:password@localhost:3306/db_name?serverVersion=5.7"
Créer la base de données.
php bin/console doctrine:database:create
//... à suivre ...//