From ed751e8aec7f0cb05ceae4edceeb403f4c4b29b8 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 29 Dec 2021 13:29:22 +0000 Subject: [PATCH] CI-CD config --- .gitlab-ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b3730b7..c63cabc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,27 +13,27 @@ # # For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages -stages: # List of stages for jobs, and their order of execution +stages: # List of stages for jobs, and their order of execution - test - build -build-job: # This job runs in the build stage, which runs first. +build-job: # This job runs in the build stage, which runs first. stage: build script: - echo "Building the Docker image..." - docker-compose build - echo "Build complete." -unit-test-job: # This job runs in the test stage. - stage: test # It only starts when the job in the build stage completes successfully. +unit-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..." - python3 -munittest discover - echo "Testing complete" -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). +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..." - - pylint + - pylint . - echo "No lint issues found."