Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
datainformed-prior
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Manuel Marschall
datainformed-prior
Commits
10f75c93
Commit
10f75c93
authored
3 years ago
by
Manuel Marschall
Browse files
Options
Downloads
Patches
Plain Diff
marsch02
parent
5db72e8d
No related branches found
No related tags found
No related merge requests found
Pipeline
#6045
failed
3 years ago
Stage: Static Analysis
Stage: Test
Stage: makepdf
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+27
-28
27 additions, 28 deletions
.gitlab-ci.yml
with
27 additions
and
28 deletions
.gitlab-ci.yml
+
27
−
28
View file @
10f75c93
...
@@ -3,7 +3,6 @@ image: "python:3.7"
...
@@ -3,7 +3,6 @@ image: "python:3.7"
stages
:
stages
:
-
Static Analysis
-
Static Analysis
-
Test
-
Test
# - upload
-
makepdf
-
makepdf
# - testdoc
# - testdoc
...
@@ -50,33 +49,33 @@ unit_test:
...
@@ -50,33 +49,33 @@ unit_test:
-
python3 -m pytest
-
python3 -m pytest
-
python3 -m pytest --cov-report term-missing --cov=datainformed-prior tests/
-
python3 -m pytest --cov-report term-missing --cov=datainformed-prior tests/
pypi
:
#
pypi:
stage
:
upload
#
stage: upload
allow_failure
:
true
#
allow_failure: true
script
:
#
script:
-
cd python
#
- cd python
-
python --version
#
- python --version
-
pip install -r requirements.txt
#
- pip install -r requirements.txt
-
apt-get update -qq && apt-get install -y -qq pandoc
#
- apt-get update -qq && apt-get install -y -qq pandoc
-
python3 -m pip install --upgrade twine
#
- python3 -m pip install --upgrade twine
-
rm -rf dist
#
- rm -rf dist
-
echo "[distutils]" >> ~/.pypirc
#
- echo "[distutils]" >> ~/.pypirc
-
echo " index-servers =" >> ~/.pypirc
#
- echo " index-servers =" >> ~/.pypirc
-
echo " mcutility" >> ~/.pypirc
#
- echo " mcutility" >> ~/.pypirc
-
echo "" >> ~/.pypirc
#
- echo "" >> ~/.pypirc
-
echo "[mcutility]" >> ~/.pypirc
#
- echo "[mcutility]" >> ~/.pypirc
-
echo " repository = https://test.pypi.org/legacy/" >> ~/.pypirc
#
- echo " repository = https://test.pypi.org/legacy/" >> ~/.pypirc
-
echo " username = __token__" >> ~/.pypirc
#
- echo " username = __token__" >> ~/.pypirc
-
echo " password = pypi-AgENdGVzdC5weXBpLm9yZwIkODc2YjkyNGMtYWFlMC00YTNkLTlmYzgtY2UzNzI5MGYwMzhlAAI6eyJwZXJtaXNzaW9ucyI6IHsicHJvamVjdHMiOiBbIm1jdXRpbGl0eSJdfSwgInZlcnNpb24iOiAxfQAABiCNlJgWB50pL7DURSrfmJ6Qh1i5JnUjA5mTA8V4UobzkA" >> ~/.pypirc
#
- echo " password = pypi-AgENdGVzdC5weXBpLm9yZwIkODc2YjkyNGMtYWFlMC00YTNkLTlmYzgtY2UzNzI5MGYwMzhlAAI6eyJwZXJtaXNzaW9ucyI6IHsicHJvamVjdHMiOiBbIm1jdXRpbGl0eSJdfSwgInZlcnNpb24iOiAxfQAABiCNlJgWB50pL7DURSrfmJ6Qh1i5JnUjA5mTA8V4UobzkA" >> ~/.pypirc
-
echo "" >> ~/.pypirc
#
- echo "" >> ~/.pypirc
-
python3 setup.py check sdist bdist
# This will fail if your creds are bad.
#
- python3 setup.py check sdist bdist # This will fail if your creds are bad.
# Since create generates a *.linux*.tar.gz file, we have to delete ist
#
# Since create generates a *.linux*.tar.gz file, we have to delete ist
# Otherwise twine complains that only one .tar.gz is allowed for upload
#
# Otherwise twine complains that only one .tar.gz is allowed for upload
-
rm -rf dist
#
- rm -rf dist
-
python3 setup.py sdist bdist_wheel
#
- python3 setup.py sdist bdist_wheel
-
twine upload -r mcutility dist/*.tar.gz
#
- twine upload -r mcutility dist/*.tar.gz
only
:
#
only:
-
master
#
- master
# test:
# test:
# stage: testdoc
# stage: testdoc
...
...
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