m0ar updates
This commit is contained in:
parent
ed751e8aec
commit
95e9db68c1
|
@ -13,6 +13,9 @@
|
||||||
#
|
#
|
||||||
# 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:
|
||||||
|
- 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
|
||||||
- build
|
- build
|
||||||
|
@ -25,7 +28,7 @@ build-job: # This job runs in the build stage, which runs first.
|
||||||
- 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 # It only starts when the job in the build stage completes successfully.
|
stage: test
|
||||||
script:
|
script:
|
||||||
- echo "Running unit tests..."
|
- echo "Running unit tests..."
|
||||||
- python3 -munittest discover
|
- python3 -munittest discover
|
||||||
|
@ -35,5 +38,5 @@ 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 .
|
- pylint -j0 -v $(git ls-files '*.py')
|
||||||
- echo "No lint issues found."
|
- echo "No lint issues found."
|
||||||
|
|
Loading…
Reference in a new issue