> For the complete documentation index, see [llms.txt](https://students.corentindesfarges.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://students.corentindesfarges.fr/cnam-fip-1a/tp-ci.md).

# TP : CI

## Mise en place et instructions

Pour ce TP, vous aurez besoin de [Git et Git Bash](https://gitforwindows.org/), ainsi que d'un compte GitLab.

**À la fin de la séance du 11/11/2020**, merci de vous assurez que le dépôt Git que vous utiliserez sera accessible publiquement (public ou internal). Vous êtes libre d'ajouter un rapport dans votre Wiki avec les difficultés rencontrées.

**Ajoutez moi comme maintainer à votre projet.**

## Configuration de la CI et création des jobs

Forkez le projet <https://gitlab.com/corentin.desfarges/tp-ci>, et clonez-le pour travailler dessus en local.

Il s'agit d'un projet node (JS). Pensez à utiliser la bonne image docker pour exécuter votre CI.

Faites le nécessaire pour exécuter les commandes suivantes dans une pipeline de CI :

1. Installation du projet (npm install)
2. Lancement des tests (npm test)
3. Lancement de la validation du style du code (npm run lint)
4. Affichage d'un message dans la console (echo...)

## Stages

Organisez vos jobs en les regroupant en trois catégories :&#x20;

1. setup (Job 1)
2. test (Job 2 + 3)
3. end (Job 4)

Les jobs à l'intérieur d'un groupe doivent être exécutés en même temps.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://students.corentindesfarges.fr/cnam-fip-1a/tp-ci.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
