Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
APIChatGPT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SIGNORELLI Lucas
APIChatGPT
Commits
48b838aa
Commit
48b838aa
authored
2 years ago
by
Luquor
Browse files
Options
Downloads
Patches
Plain Diff
Ajout du stage build avec codeception (surement des corrections)
parent
a760497f
No related branches found
No related tags found
No related merge requests found
Pipeline
#10833
failed
2 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+21
-1
21 additions, 1 deletion
.gitlab-ci.yml
with
21 additions
and
1 deletion
.gitlab-ci.yml
+
21
−
1
View file @
48b838aa
image
:
codeception/codeception
stages
:
-
build
-
test
-
deploy
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
:
-
codecept run unit --coverage
# On lance les tests unitaires et on génère le rapport de couverture de code
-
echo "Running unit tests"
deploy-job
:
# Le job se lance dans la phase de déploiement
stage
:
deploy
script
:
-
echo "Deploying the project"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment