Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
G1_ShoppingApp
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
G1_ShoppingApp
G1_ShoppingApp
Commits
0b9a6682
Commit
0b9a6682
authored
1 month ago
by
duyanhehe
Browse files
Options
Downloads
Patches
Plain Diff
delete unnecessary file
parent
541bb89e
No related branches found
No related tags found
No related merge requests found
Pipeline
#9122
failed
1 month ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+0
-53
0 additions, 53 deletions
.gitlab-ci.yml
with
0 additions
and
53 deletions
.gitlab-ci.yml
deleted
100644 → 0
+
0
−
53
View file @
541bb89e
stages
:
-
install
-
test
-
deploy
variables
:
VENV_DIR
:
.venv
PIP_CACHE_DIR
:
$CI_PROJECT_DIR/.pip_cache
cache
:
key
:
dependencies-cache
paths
:
-
$PIP_CACHE_DIR
policy
:
pull-push
before_script
:
-
Set-ExecutionPolicy Bypass -Scope Process -Force
-
if (-Not (Test-Path "C:\ProgramData\chocolatey\bin\choco.exe")) {
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
}
-
refreshenv
-
if (-Not (Get-Command python -ErrorAction SilentlyContinue)) { choco install python --version=3.11.5 -y }
-
refreshenv
-
python -m venv .venv
-
source .venv/Scripts/activate
-
pip install --upgrade pip
-
pip install -r requirements.txt --cache-dir $PIP_CACHE_DIR
install_dependencies
:
stage
:
install
script
:
-
echo "Dependencies installed successfully."
timeout
:
20m
run_tests
:
stage
:
test
script
:
-
pytest --maxfail=5 --disable-warnings
artifacts
:
when
:
always
paths
:
-
tests/reports/
reports
:
junit
:
tests/reports/junit.xml
deploy
:
stage
:
deploy
script
:
-
echo "Deploying application..."
-
python run_app.py
only
:
-
main
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