Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
ci-testing
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Bo-Chun Chen
ci-testing
Commits
c8704d87
Commit
c8704d87
authored
1 year ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
18354e1f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#9557
passed with stages
in 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-14
4 additions, 14 deletions
.gitlab-ci.yml
with
4 additions
and
14 deletions
.gitlab-ci.yml
+
4
−
14
View file @
c8704d87
...
@@ -23,6 +23,8 @@ stages: # List of stages for jobs, and their order of execution
...
@@ -23,6 +23,8 @@ stages: # List of stages for jobs, and their order of execution
build-job
:
# This job runs in the build stage, which runs first.
build-job
:
# This job runs in the build stage, which runs first.
stage
:
build
stage
:
build
tags
:
-
build
script
:
script
:
-
echo "Compiling the code..."
-
echo "Compiling the code..."
-
echo "Compile complete."
-
echo "Compile complete."
...
@@ -31,23 +33,11 @@ build-job: # This job runs in the build stage, which runs first.
...
@@ -31,23 +33,11 @@ build-job: # This job runs in the build stage, which runs first.
echo line2
echo line2
echo line3
echo line3
unit-test-job
:
# This job runs in the test stage.
stage
:
test
# It only starts when the job in the build stage completes successfully.
script
:
-
echo "Running unit tests... This will take about 60 seconds."
-
sleep
60
-
echo "Code coverage is 90%"
lint-test-job
:
# This job also runs in the test stage.
lint-test-job
:
# This job also runs in the test stage.
stage
:
test
# It can run at the same time as unit-test-job (in parallel).
stage
:
test
# It can run at the same time as unit-test-job (in parallel).
tags
:
-
lint
script
:
script
:
-
echo "Linting code... This will take about 10 seconds."
-
echo "Linting code... This will take about 10 seconds."
-
sleep
10
-
sleep
10
-
echo "No lint issues found."
-
echo "No lint issues found."
deploy-job
:
# This job runs in the deploy stage.
stage
:
deploy
# It only runs when *both* jobs in the test stage complete successfully.
environment
:
production
script
:
-
echo "Deploying application..."
-
echo "Application successfully deployed."
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