remove .itlab-ci.yml and call of pytest to Makefile
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
image: gradle:8.6-jdk21-alpine
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- publish
|
||||
|
||||
# Disable the Gradle daemon for Continuous Integration servers as correctness
|
||||
# is usually a priority over speed in CI environments. Using a fresh
|
||||
# runtime for each build is more reliable since the runtime is completely
|
||||
# isolated from any previous builds.
|
||||
variables:
|
||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
||||
|
||||
before_script:
|
||||
- GRADLE_USER_HOME="$(pwd)/.gradle"
|
||||
- export GRADLE_USER_HOME
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- cd springboot
|
||||
- gradle assemble --no-daemon
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- cd springboot
|
||||
- gradle check --no-daemon
|
||||
|
||||
publish:
|
||||
stage: publish
|
||||
script:
|
||||
- cd springboot
|
||||
- gradle --no-daemon publish -PgitlabPackageRegistryUsername=gitlab-ci-token -PgitlabPackageRegistryPassword="$CI_JOB_TOKEN"
|
||||
|
||||
+1
-6
@@ -12,12 +12,7 @@ virtualenv:
|
||||
@echo
|
||||
|
||||
test:
|
||||
python -m pytest \
|
||||
-v \
|
||||
--cov=kontor \
|
||||
--cov-report=term \
|
||||
--cov-report=html:coverage-report \
|
||||
tests/
|
||||
pytest -v --cov --cov-report=term --cov-report=html:coverage-report
|
||||
|
||||
docker: clean
|
||||
docker build -t kontor-api:latest .
|
||||
|
||||
Reference in New Issue
Block a user