Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
comp-sci-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
nguyed99
comp-sci-project
Commits
635c2419
Commit
635c2419
authored
1 year ago
by
nguyed99
Browse files
Options
Downloads
Patches
Plain Diff
Update CI to deploy webpage
parent
83414517
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#58936
passed
1 year ago
Stage: test-jobs
Stage: test-tasks
Stage: build-page
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+25
-10
25 additions, 10 deletions
.gitlab-ci.yml
with
25 additions
and
10 deletions
.gitlab-ci.yml
+
25
−
10
View file @
635c2419
...
...
@@ -3,24 +3,39 @@ image: python:3.11-bullseye
stages
:
-
test-jobs
-
test-tasks
before_script
:
-
pip install poetry
-
poetry --version
-
cd build/
-
poetry install --no-root
-
source $(poetry env info --path)/bin/activate
-
cd ..
-
build-page
test-jobs
:
stage
:
test-jobs
script
:
-
pip install poetry
-
poetry --version
-
cd build/
-
poetry install --no-root
-
source $(poetry env info --path)/bin/activate
-
cd ..
-
export PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/jobs/src"
-
poetry run pytest jobs/tests/
test-tasks
:
stage
:
test-tasks
script
:
-
pip install poetry
-
poetry --version
-
cd build/
-
poetry install --no-root
-
source $(poetry env info --path)/bin/activate
-
cd ..
-
export PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/tasks/src"
-
poetry run pytest tasks/tests/
\ No newline at end of file
-
poetry run pytest tasks/tests/
pages
:
stage
:
build-page
script
:
-
mkdir .public
-
cp -r website/* .public
artifacts
:
paths
:
-
public
only
:
-
main
\ 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