Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alibylite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Swain Lab
aliby
alibylite
Commits
63b922b7
Commit
63b922b7
authored
3 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
use curl for triggers and pass variable
parent
faba0626
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-11
8 additions, 11 deletions
.gitlab-ci.yml
with
8 additions
and
11 deletions
.gitlab-ci.yml
+
8
−
11
View file @
63b922b7
...
...
@@ -9,6 +9,9 @@ cache:
files
:
-
poetry.lock
variables
:
TRIGGER_PYPI_NAME
:
"
"
stages
:
-
test
-
check
...
...
@@ -23,16 +26,12 @@ before_script:
-
git remote rm origin && git remote add origin https://${ACCESS_TOKEN_NAME}:${ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git
-
git config pull.rebase
false
-
git pull origin HEAD:master
-
if [ ${var+TRIGGER_PYPI_NAME} ]; then echo "Pipeline triggered by ${TRIGGER_PYPI_NAME}"; poetry update ${TRIGGER_PYPI_NAME}; fi
-
rm -f poetry.lock
-
rm -rf ~/.cache/pypoetry
-
if [ ${var+TRIGGER_PYPI_NAME} ]; then echo "Pipeline triggered by ${TRIGGER_PYPI_NAME}"; poetry add ${TRIGGER_PYPI_NAME}@latest; fi
-
poetry install -vv
# - poetry export -f requirements.txt --output requirements.txt
# - sed '/^zeroc-ice/,/^[z.*]/{/z.*/!d}' requirements.txt | grep -v zeroc-ice > nozice.txt
# - pip install -r nozice.txt --no-deps && pip install pytest black mypy
Unit test
:
stage
:
test
# allow_failure: true
script
:
-
apt update && apt install ffmpeg libsm6 libxext6 -y
-
poetry run pytest ./tests/
...
...
@@ -52,14 +51,12 @@ Static Type:
Bump_release
:
stage
:
release
script
:
-
poetry version ${BUMP_RULE}
-
git config --global user.email ${GITLAB_USER_EMAIL}
-
git config --global user.name ${GITLAB_USER_NAME}
-
git add pyproject.toml poetry.lock
-
git commit -m "Bump version"
# - git pull && git push -o ci.skip origin HEAD:master && poetry publish --build --username ${PYPI_USER} --password ${PYPI_PASSWORD}
# - git pull && git push -o ci.skip origin HEAD:master
# - git pull origin HEAD:MASTER && poetry version ${BUMP_RULE} && git add pypoetry add pyproject.toml poetry.lock && git commit -m "Bump version" && git push -o ci.skip origin HEAD:master && poetry publish --build --username ${PYPI_USER} --password ${PYPI_PASSWORD}
-
echo "TRIGGER_PYPI_NAME=$(cat pyproject.toml | grep '^name =' | head -n 1 | cut -f3 -d' ' | tr -d \")" >> build.env
-
echo "Exporting TRIGGER_PYPI_NAME as ${TRIGGER_PYPI_NAME}"
artifacts
:
reports
:
dotenv
:
build.env
...
...
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