Skip to content
Snippets Groups Projects
Commit 5c5d4144 authored by Malte Nyhuis's avatar Malte Nyhuis
Browse files

Update .gitlab-ci.yml file

parent e1c9cfdb
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -21,10 +21,10 @@ stages: # List of stages for jobs, and their order of execution
build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- echo "Compiling the code..."
- echo "Compile complete."
- python -m pip install --upgrade pip
- pip install .
unit-test-job: # This job runs in the test stage.
test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
script:
- echo "Running unit tests... This will take about 60 seconds."
......@@ -34,9 +34,9 @@ unit-test-job: # This job runs in the test stage.
lint-test-job: # This job also runs in the test stage.
stage: test # It can run at the same time as unit-test-job (in parallel).
script:
- echo "Linting code... This will take about 10 seconds."
- sleep 10
- echo "No lint issues found."
- pip install flake8 pytest
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
deploy-job: # This job runs in the deploy stage.
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
......
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