Try to run Test only in CI

This commit is contained in:
Mirco 2024-07-08 12:17:24 +02:00
parent e1fa9d8c25
commit 716d241689

View file

@ -1,7 +1,7 @@
stages: stages:
# - build_and_test # - build_and_test
- build # - build
# - test - test
# - package # - package
# - security # - security
# - upload # - upload
@ -48,24 +48,29 @@ stages:
when: never when: never
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/' - if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
build-image: #build-image:
<<: *img # <<: *img
#<<: *tag_only # <<: *tag_only
stage: test # stage: build
script: # script:
- pyb image # - pyb image
test: test:
image: "domaindrivenarchitecture/ddadevops-python:latest" image: "domaindrivenarchitecture/ddadevops-python:latest"
#<<: *img <<: *img
#<<: *tag_only #<<: *tag_only
stage: build stage: test
needs: []
script: script:
- apt-get update - apt-get update
- apt-get -qqy upgrade - apt-get -qqy upgrade
- apt-get install openjdk-17-jdk - apt-get install openjdk-17-jdk
- ./gradlew clean build -Pvaadin.productionMode
- pyb test - pyb test
after_script:
- echo "---------- End CI ----------"
#test-clj: #test-clj:
# <<: *clj # <<: *clj
# stage: build_and_test # stage: build_and_test