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
1b6b7b16
Verified
Commit
1b6b7b16
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
[CI] Move all test script content to tox (and restructure)
parent
81898a5e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#357
failed
5 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+39
-70
39 additions, 70 deletions
.gitlab-ci.yml
with
39 additions
and
70 deletions
.gitlab-ci.yml
+
39
−
70
View file @
1b6b7b16
image
:
registry.edugit.org/teckids/docker-images/python-pimped:master
stages
:
-
build
-
test
-
build
-
deploy
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
POSTGRESQL_USER
:
biscuit
POSTGRESQL_DB
:
biscuit
BISCUIT_http__allowed_hosts
:
"
['*']"
BISCUIT_caching__memcached__address
:
memcached:11211
BISCUIT_database__host
:
db
cache
:
key
:
files
:
-
poetry.lock
paths
:
-
.cache/pip
-
key
:
files
:
-
poetry.lock
paths
:
-
.cache/pip
-
key
:
files
:
-
poetry.lock
-
pyproject.toml
-
tox.ini
paths
:
-
.tox
test
:
stage
:
test
before_script
:
adduser --disabled-password --gecos "Test User" testuser
script
:
sudo -u testuser tox
artifacts
:
paths
:
-
htmlcov/
build_wheel
:
lint
:
stage
:
test
script
:
tox -e lint,security
allow_failure
:
true
build_dist
:
stage
:
build
image
:
name
:
registry.edugit.org/teckids/docker-images/python-pimped:master
script
:
-
poetry
build
-
tox -e
build
artifacts
:
paths
:
-
dist/
pages
:
stage
:
deploy
script
:
tox -e docs -- BUILDDIR=../public/docs
artifacts
:
paths
:
-
public/
only
:
-
master
build_docker
:
stage
:
build
image
:
...
...
@@ -52,53 +76,11 @@ build_docker:
-
master
-
tags
test_wheel
:
stage
:
test
image
:
name
:
registry.edugit.org/teckids/docker-images/python-pimped:master
services
:
-
selenium/hub
-
selenium/node-chrome
-
selenium/node-firefox
before_script
:
-
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
-
python ./manage.py compilemessages
-
eatmydata python ./manage.py yarn install
-
python ./manage.py collectstatic --no-input --clear
-
sudo -u testuser eatmydata env TEST_SCREENSHOT_PATH=./screenshots tox
-
pip freeze | safety check --stdin --full-report
artifacts
:
paths
:
-
screenshots/
test_docker
:
stage
:
test
image
:
name
:
registry.edugit.org/teckids/docker-images/python-pimped:master
services
:
-
name
:
postgres:12
alias
:
db
-
name
:
memcached
alias
:
memcached
-
name
:
registry.edugit.org/biscuit/biscuit-ng:${CI_COMMIT_REF_NAME}
alias
:
app
script
:
-
echo
true
only
:
-
master
-
tags
deploy_demo-master
:
stage
:
deploy
environment
:
name
:
demo/master
url
:
http://demo-master.biscuit-sis.org
image
:
name
:
debian:buster-slim
before_script
:
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
...
...
@@ -124,16 +106,3 @@ deploy_demo-master:
up -d
only
:
-
master
pages
:
stage
:
deploy
image
:
name
:
registry.edugit.org/teckids/docker-images/python-pimped:master
script
:
-
poetry export --without-hashes --dev -f requirements.txt | eatmydata pip install -r /dev/stdin
-
make -C docs html BUILDDIR=../public/docs
artifacts
:
paths
:
-
public/
only
:
-
master
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