Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bitia-cli
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
bitia
bitia-cli
Commits
41de2fce
Commit
41de2fce
authored
2 years ago
by
dilawar
Browse files
Options
Downloads
Patches
Plain Diff
chore: Added pipeline.
parent
b9b26857
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#3581
canceled with stages
Stage:
Stage:
Stage:
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+38
-0
38 additions, 0 deletions
.gitlab-ci.yml
Makefile
+49
-0
49 additions, 0 deletions
Makefile
with
87 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
38
−
0
View file @
41de2fce
image
:
python:3.8-slim-buster
stages
:
-
build
-
test
-
deploy
before_script
:
-
apt update && apt install -y make docker docker-compose
-
docker run hello-world
-
cd bitia_runner && make bootstrap
build
:
stage
:
build
tags
:
-
linux
script
:
-
make ci
test
:
stage
:
test
tags
:
-
linux
script
:
-
python3 -m pip install .
-
make test
-
bash ./tests/cli_in_docker/run_tests.sh
deploy
:
stage
:
deploy
tags
:
-
linux
script
:
-
python3 -m pip install poetry
-
poetry install
-
poetry version "$(poetry version -s).dev$(date +%Y%m%d)"
-
make wheel
-
make upload
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
49
−
0
View file @
41de2fce
PYTHON
:=
$(
shell which python3
)
POETRY
:=
$(
shell which poetry
)
MYPY_OPTS
:=
--ignore-missing-imports
--install-types
--non-interactive
all
:
lint build
ci
:
bootstrap build test
bootstrap
:
$(
PYTHON
)
-m
ensurepip
$(
PYTHON
)
-m
pip
install
poetry
build
:
check
$(
POETRY
)
build
check
:
lint
$(
POETRY
)
install
$(
POETRY
)
run mypy
$(
MYPY_OPTS
)
bitia tests
lint
:
$(
POETRY
)
install
$(
POETRY
)
run pylint
-E
bitia tests
test
:
lint build
$(
POETRY
)
run pytest tests bitia
fix
:
$(
POETRY
)
run black bitia
$(
POETRY
)
run black tests
gr runner gitlab-runner
:
gitlab-runner
exec
docker build
gitlab-runner
exec
docker
test
gitlab-runner
exec
docker deploy
test_pipeline
:
install
$(
POETRY
)
run bitia_runner run tests/test_20220727
wheel
:
rm
-rf
dist/
*
.whl
$(
POETRY
)
build
upload
:
$(
POETRY
)
run twine upload dist/
*
.whl
-u
__token__
-p
$$
BITIA_PYPI_TOKEN
||
echo
"Failed to upload"
.PHONY
:
copr fix test install lint build
\
all check bootstrap test_pipeline
\
runner gitlab-runner image image_upload
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