Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dummy-vue-grpc
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
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
vig
provee
dummy-vue-grpc
Commits
c5e0d0f5
Commit
c5e0d0f5
authored
3 years ago
by
DarkLynx32
Browse files
Options
Downloads
Patches
Plain Diff
Testing build stage, added auto generation for sphinx, testing deployment
parent
77159dfb
No related branches found
Branches containing commit
No related tags found
1 merge request
!19
Updated GitLab pipeline, disabled deploy
Pipeline
#91573
canceled
3 years ago
Stage: Lint
Stage: Build
Stage: Test
Stage: Documentation
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+34
-13
34 additions, 13 deletions
.gitlab-ci.yml
with
34 additions
and
13 deletions
.gitlab-ci.yml
+
34
−
13
View file @
c5e0d0f5
...
...
@@ -17,9 +17,10 @@ image: python:3.8
stages
:
-
Lint
-
Build
-
Test
-
Deploy
-
Doc
s
-
Doc
umentation
# Make sure all dependencies are installed before each job
...
...
@@ -33,7 +34,7 @@ before_script:
###############
# STAGE:
l
int #
# STAGE:
L
int #
###############
PythonLint
:
...
...
@@ -45,10 +46,21 @@ PythonLint:
# Install linter
-
pip install pycodestyle
# Run linter on LocalProjector
#- pycodestyle LocalProjector\
#- pycodestyle LocalProjector/
################
# STAGE: Build #
################
BuildLocalProjector
:
stage
:
Build
script
:
# Try to run program
-
cd LocalProjector/
-
python main.py -platform offscreen
###############
# STAGE:
t
est #
# STAGE:
T
est #
###############
UnitTestPython
:
...
...
@@ -82,7 +94,7 @@ E2ETest:
-
echo "E2E tests have yet to be integrated."
#################
# STAGE:
d
eploy #
# STAGE:
D
eploy #
#################
LocalProjectorDeployment
:
...
...
@@ -98,22 +110,31 @@ LocalProjectorDeployment:
-
ls -a
artifacts
:
paths
:
-
dist/*
.exe
-
dist/*
expire_in
:
1 week
#
only:
#
- master
only
:
-
master
###############
# STAGE: Doc
s
#
###############
###############
#########
# STAGE: Doc
umentation
#
###############
#########
DocumentationSphinx
:
stage
:
Doc
s
stage
:
Doc
umentation
script
:
# Install sphinx and ReadTheDocs theme
-
pip install sphinx sphinx-rtd-theme
# Make a backups of pages that were customized after generation
-
cd LocalProjector/
-
mkdir backup-docs/source/
-
cp docs/source/modules.rst backup-docs/source/
# Enter documentation folder
-
cd LocalProjector/docs/
-
cd docs/
# Auto generate pages for new scripts
# .md files should be done manually by using "m2r README_FILENAME.md"
-
sphinx-apidoc -f -o source ../src/
# Add customized pages again which have been overwritten
-
cp -R ../backup-docs/source/* ./source/
# Build documentation
-
make html
# Move new documentation to seperate folder to be published
...
...
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