Fix Gitlab CI
This commit is contained in:
parent
ba4e0a93ed
commit
be95b9e768
|
@ -13,8 +13,8 @@
|
||||||
#
|
#
|
||||||
# For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages
|
# For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages
|
||||||
|
|
||||||
before_script:
|
# before_script:
|
||||||
- pip install -Ur requirements.txt
|
# - ...
|
||||||
|
|
||||||
stages: # List of stages for jobs, and their order of execution
|
stages: # List of stages for jobs, and their order of execution
|
||||||
- test
|
- test
|
||||||
|
@ -29,16 +29,16 @@ build-job: # This job runs in the build stage, which runs first.
|
||||||
- docker push $CI_REGISTRY_IMAGE
|
- docker push $CI_REGISTRY_IMAGE
|
||||||
- echo "Build complete."
|
- echo "Build complete."
|
||||||
|
|
||||||
unit-test-job: # This job runs in the test stage.
|
# unit-test-job: # This job runs in the test stage.
|
||||||
stage: test
|
# stage: test
|
||||||
script:
|
# script:
|
||||||
- echo "Running unit tests..."
|
# - echo "Running unit tests..."
|
||||||
- python3 -munittest discover
|
# - python3 -munittest discover
|
||||||
- echo "Testing complete"
|
# - echo "Testing complete"
|
||||||
|
|
||||||
lint-test-job: # This job also 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).
|
# stage: test # It can run at the same time as unit-test-job (in parallel).
|
||||||
script:
|
# script:
|
||||||
- echo "Linting code..."
|
# - echo "Linting code..."
|
||||||
- pylint -j0 -v $(git ls-files '*.py')
|
# - pylint -j0 -v $(git ls-files '*.py')
|
||||||
- echo "No lint issues found."
|
# - echo "No lint issues found."
|
||||||
|
|
Loading…
Reference in a new issue