Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Sublime Music
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
117
Issues
117
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
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
Sublime Music
Sublime Music
Commits
0ea03f3f
Verified
Commit
0ea03f3f
authored
Sep 22, 2020
by
Sumner Evans
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert to poetry
parent
e8e74afd
Pipeline
#193119005
failed with stages
in 1 minute and 28 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
12 deletions
+16
-12
.gitlab-ci.yml
.gitlab-ci.yml
+8
-8
cicd/install-project-deps.sh
cicd/install-project-deps.sh
+6
-2
cicd/pages-build.sh
cicd/pages-build.sh
+1
-1
cicd/python-build/Dockerfile
cicd/python-build/Dockerfile
+1
-1
No files found.
.gitlab-ci.yml
View file @
0ea03f3f
...
...
@@ -22,11 +22,11 @@ lint:
before_script
:
-
./cicd/install-project-deps.sh
script
:
-
p
ipenv
run python setup.py check -mrs
-
p
ipenv
run black --check .
-
p
ipenv
run flake8
-
p
ipenv
run mypy sublime tests/**/*.py
-
p
ipenv
run cicd/custom_style_check.py
-
p
oetry
run python setup.py check -mrs
-
p
oetry
run black --check .
-
p
oetry
run flake8
-
p
oetry
run mypy sublime tests/**/*.py
-
p
oetry
run cicd/custom_style_check.py
test
:
stage
:
test
...
...
@@ -37,7 +37,7 @@ test:
-
Xvfb :119 -screen 0 1024x768x16 &
-
export DISPLAY=:119
script
:
-
p
ipenv
run ./cicd/pytest.sh
-
p
oetry
run ./cicd/pytest.sh
artifacts
:
paths
:
-
htmlcov
...
...
@@ -47,7 +47,7 @@ build:
before_script
:
-
./cicd/install-project-deps.sh
script
:
-
p
ipenv
run python setup.py sdist
-
p
oetry
run python setup.py sdist
artifacts
:
paths
:
-
dist/*
...
...
@@ -115,7 +115,7 @@ publish_release:
before_script
:
-
./cicd/install-project-deps.sh
script
:
-
p
ipenv
run ./cicd/publish-gitlab-release.sh
-
p
oetry
run ./cicd/publish-gitlab-release.sh
# Scheduled Jobs
# =============================================================================
...
...
cicd/install-project-deps.sh
View file @
0ea03f3f
...
...
@@ -3,5 +3,9 @@ export PYENV_ROOT="${HOME}/.pyenv"
export
PATH
=
"
${
PYENV_ROOT
}
/bin:
$PATH
"
eval
"
$(
pyenv init -
)
"
export
PIPENV_VENV_IN_PROJECT
=
1
pipenv
install
--dev
pip3
install
poetry
mkdir
-p
~/.config/pypoetry/
echo
"[virtualenvs]"
>
~/.config/pypoetry/config.toml
echo
"in-project = true"
>>
~/.config/pypoetry/config.toml
poetry
install
--dev
cicd/pages-build.sh
View file @
0ea03f3f
...
...
@@ -3,7 +3,7 @@
set
-xe
pushd
docs
p
ipenv
run make html
p
oetry
run make html
popd
mv
docs/_build/html public
...
...
cicd/python-build/Dockerfile
View file @
0ea03f3f
...
...
@@ -40,7 +40,7 @@ RUN apt update && \
RUN
cd
/usr/local/src
&&
\
curl
-L
https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
RUN
pip3
install
p
ipenv
RUN
pip3
install
p
oetry
# Install the correct Python version with pyenv
COPY
install-python.sh /tmp/install-python.sh
...
...
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