Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔为之
elp
Commits
afc5e2a4
Commit
afc5e2a4
authored
Oct 31, 2023
by
崔为之
💪🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update project
parent
be808d1f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
92 additions
and
0 deletions
+92
-0
.editorconfig
.editorconfig
+33
-0
.travis.yaml
.travis.yaml
+14
-0
CHANGELOG.md
CHANGELOG.md
+6
-0
Makefile
Makefile
+39
-0
No files found.
.editorconfig
0 → 100644
View file @
afc5e2a4
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8
# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
# Indentation override for all JS under lib directory
[lib/**.js]
indent_style = space
indent_size = 2
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
.travis.yaml
0 → 100644
View file @
afc5e2a4
language
:
python
python
:
"
3.11"
install
:
-
pip install -r requirements.txt
-
pip install coveralls
script
:
-
pytest -p no:warnings
-
coverage run -m pytest -p no:warnings
after_script
:
-
coveralls
CHANGELOG.md
0 → 100644
View file @
afc5e2a4
# elp ChangeLog
All notable changes to this project will be documented in this file.
## [0.1.0] - 2023-10-31
-
[x] 第一个版本
Makefile
0 → 100644
View file @
afc5e2a4
.PHONY
:
init init-migration build run db-migrate test tox
init
:
build run
docker-compose
exec
web flask db init
docker-compose
exec
web flask db migrate
docker-compose
exec
web flask db upgrade
docker-compose
exec
web flask init
@
echo
"Init done, containers running"
build
:
docker-compose build
run
:
@
mkdir
-p
db
docker-compose up
-d
db-init
:
docker-compose
exec
web flask db init
db-migrate
:
docker-compose
exec
web flask db migrate
db-upgrade
:
docker-compose
exec
web flask db upgrade
test
:
docker-compose stop celery
# stop celery to avoid conflicts with celery tests
docker-compose start rabbitmq redis
# ensuring both redis and rabbitmq are started
docker-compose run
-v
$(PWD)
/tests:/code/tests:ro web tox
-e
test
docker-compose start celery
tox
:
docker-compose stop celery
# stop celery to avoid conflicts with celery tests
docker-compose start rabbitmq redis
# ensuring both redis and rabbitmq are started
docker-compose run
-v
$(PWD)
/tests:/code/tests:ro web tox
-e
y
docker-compose start celery
lint
:
docker-compose run web tox
-e
lint
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment