[wip][ci] "before_script" runs before every job

This commit is contained in:
Maxime Alves LIRMM@home 2021-10-12 03:25:59 +02:00
parent 948372fcbc
commit 339c910c86
1 changed files with 6 additions and 6 deletions

View File

@ -23,18 +23,19 @@ cache:
- .cache/pip - .cache/pip
- venv/ - venv/
before_script:
- python -V # Print out python version for debugging
- pip install pipenv
- pipenv install --dev --skip-lock
test: test:
script: script:
- python3 -V # Print out python version for debugging
- pip3 install pipenv
- pipenv install --dev --skip-lock
- pipenv run pytest -v - pipenv run pytest -v
- pipenv run halfapi --version - pipenv run halfapi --version
run: run:
script: script:
- python3 -V # Print out python version for debugging
- pip3 install pipenv
- pipenv install --dev --skip-lock
- pipenv run python -m build --sdist - pipenv run python -m build --sdist
- pipenv run python -m build --wheel - pipenv run python -m build --wheel
artifacts: artifacts:
@ -44,5 +45,4 @@ run:
build: build:
image: docker:19.03.12-dind image: docker:19.03.12-dind
script: script:
- apt-get install python3
- docker build -t halfapi . - docker build -t halfapi .