Skip to content
Snippets Groups Projects
Verified Commit 242b50cc authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[CI] Use eatmydata in container setup and dependency installation

parent 59f37f3e
Branches test-deployment
No related tags found
No related merge requests found
......@@ -18,20 +18,24 @@ test:
image:
name: python:3.8-buster
before_script:
- apt-get -y update && apt-get -y install postgresql libpq5 libpq-dev libssl-dev sudo
- pip install "poetry==${POETRY_VERSION}"
- apt-get -y update
- apt-get -y install eatmydata
- eatmydata apt-get -y install postgresql libpq5 libpq-dev libssl-dev sudo
- eatmydata pip install "poetry==${POETRY_VERSION}"
- adduser --disabled-password --gecos "Test User" testuser
script:
- sudo -u testuser poetry install
- sudo -u testuser poetry run tox
- sudo -u testuser eatmydata poetry install
- sudo -u testuser eatmydata poetry run tox
build_dist:
stage: build
image:
name: python:3.8-buster
before_script:
- apt-get -y update && apt-get -y sudo
- pip install "poetry==${POETRY_VERSION}"
- apt-get -y update
- apt-get -y install eatmydata
- eatmydata apt-get -y install sudo
- eatmydata pip install "poetry==${POETRY_VERSION}"
- adduser --disabled-password --gecos "Test User" testuser
script:
- sudo -u testuser poetry build
......@@ -111,10 +115,17 @@ pages:
image:
name: python:3.8-buster
before_script:
<<<<<<< Updated upstream
- apt-get -y update && apt-get -y install make
- pip install "poetry==${POETRY_VERSION}"
=======
- apt-get -y update
- apt-get -y install eatmydata
- eatmydata apt-get -y install make
- eatmydata pip install poetry
>>>>>>> Stashed changes
script:
- poetry install
- eatmydata poetry install
- poetry run make -C docs html BUILDDIR=../public/docs
artifacts:
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment