Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
5cfbd3ef
Verified
Commit
5cfbd3ef
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
[CI] Restructure pipeline to do more in parallel
parent
99b5b169
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#319
failed
5 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+23
-29
23 additions, 29 deletions
.gitlab-ci.yml
tox.ini
+2
-0
2 additions, 0 deletions
tox.ini
with
25 additions
and
29 deletions
.gitlab-ci.yml
+
23
−
29
View file @
5cfbd3ef
stages
:
-
build_standalone
-
test_standalone
-
build_integrated
-
test_integrated
-
build
-
test
-
deploy
variables
:
...
...
@@ -22,7 +20,7 @@ cache:
-
.cache/pip
build_wheel
:
stage
:
build
_standalone
stage
:
build
image
:
name
:
registry.edugit.org/teckids/docker-images/python-pimped:master
script
:
...
...
@@ -31,19 +29,8 @@ build_wheel:
paths
:
-
dist/
test_wheel
:
stage
:
test_standalone
image
:
name
:
registry.edugit.org/teckids/docker-images/python-pimped:master
before_script
:
-
adduser --disabled-password --gecos "Test User" testuser
script
:
-
poetry export --without-hashes --dev -f requirements.txt | pip install -r /dev/stdin
-
eatmydata pip install dist/*.whl
-
sudo -u testuser eatmydata tox
build_docker
:
stage
:
build
_integrated
stage
:
build
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
...
...
@@ -62,8 +49,24 @@ build_docker:
--cache=true
--cleanup
test_docker_selenium
:
stage
:
test_integrated
test_wheel
:
stage
:
test
image
:
name
:
registry.edugit.org/teckids/docker-images/python-pimped:master
before_script
:
-
apt-get -y update && eatmydata apt-get -y install chromium-driver
-
adduser --disabled-password --gecos "Test User" testuser
-
mkdir -p screenshots && chown testuser screenshots
script
:
-
poetry export --without-hashes --dev -f requirements.txt | pip install -r /dev/stdin
-
eatmydata pip install dist/*.whl
-
sudo -u testuser eatmydata env TEST_SCREENSHOT_PATH=./screenshots tox
artifacts
:
paths
:
-
screenshots/
test_docker
:
stage
:
test
image
:
name
:
registry.edugit.org/teckids/docker-images/python-pimped:master
services
:
...
...
@@ -73,17 +76,8 @@ test_docker_selenium:
alias
:
memcached
-
name
:
registry.edugit.org/biscuit/biscuit-ng:${CI_COMMIT_REF_NAME}
alias
:
app
before_script
:
-
apt-get -y update && eatmydata apt-get -y install chromium-driver
-
eatmydata pip install selenium pytest-selenium
-
poetry export --without-hashes --dev -f requirements.txt | pip install -r /dev/stdin
-
eatmydata pip install dist/*.whl
-
adduser --disabled-password --gecos "Test User" testuser
script
:
-
sudo -u testuser eatmydata tox -e selenium
artifacts
:
paths
:
-
screenshots/
-
echo
true
deploy_demo-master
:
stage
:
deploy
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
2
−
0
View file @
5cfbd3ef
...
...
@@ -7,6 +7,8 @@ whitelist_externals = poetry
pytest
skip_install
=
true
commands
=
pytest --pylama --cov=biscuit biscuit/core/
setenv
=
TEST_SCREENSHOT_PATH
=
{env:TEST_SCREENSHOT_PATH}
[pylama]
linters
=
pycodestyle,pyflakes,radon
...
...
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