Skip to content
Snippets Groups Projects
Commit 7611c748 authored by Andri Fränkl's avatar Andri Fränkl
Browse files

Update .gitlab-ci.yml

parent 0fc4675f
No related branches found
No related tags found
1 merge request!34Update .gitlab-ci.yml
Pipeline #14885 failed
...@@ -6,30 +6,25 @@ default: ...@@ -6,30 +6,25 @@ default:
stages: # List of employment runs, starts with build ends with deploy. stages: # List of employment runs, starts with build ends with deploy.
- build - build
- test - test
- deploy
build-job: # First stage deployment and installation of dependencies. build-job: # First stage deployment and installation of dependencies.
stage: build # Build Stage stage: build # Build Stage
script: script:
- pip install -r requirements.txt - pip install -r requirements.txt
- pip install -r requirements_dev.txt - pip install -r requirements_dev.txt
- echo "Dependencies successfully deployed."
Coverage-test-job: # Test Stage Coverage-test-job: # Test Stage
stage: test # Starts when the above build stages finishes installing dependencies. stage: test # Starts when the above build stages finishes installing dependencies.
script: script:
- coverage run --source git.scicore.unibas.ch:2222/zavolan_group/tools/transcript-structure-generator/tests/ -m pytest - coverage run --source tests/tests/ -m pytest
- coverage report -m - coverage report -m
- echo "Coverage successfully deployed."
Flake8/Pylint/mypy-test-job: # Test Stage Flake8/Pylint/mypy-test-job: # Test Stage
stage: test # Deploys and runs all 3 linters. stage: test # Deploys and runs all 3 linters.
script: script:
- flake8 --docstring-convention google git.scicore.unibas.ch:2222/zavolan_group/tools/transcript-structure-generator/tests/ - flake8 --docstring-convention google tests/tests/
- pylint git.scicore.unibas.ch:2222/zavolan_group/tools/transcript-structure-generator/tests/ - pylint tests/tests/
- mypy git.scicore.unibas.ch:2222/zavolan_group/tools/transcript-structure-generator/tests/ - mypy tests/tests/
- echo "Linters successfully deployed."
deploy-job: # Deploy Stage
stage: deploy # Runs only when the privious jobs were finished succesfully.
environment: production
script:
- echo "Running script"
- echo "Application successfully deployed."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment