short ci for branch integration-local
This commit is contained in:
parent
e0890646d8
commit
2bb5358245
1 changed files with 16 additions and 3 deletions
|
@ -31,20 +31,29 @@ services:
|
||||||
- mkdir -p /root/.lein
|
- mkdir -p /root/.lein
|
||||||
- echo "{:auth {:repository-auth {#\"clojars\" {:username \"${CLOJARS_USER}\" :password \"${CLOJARS_TOKEN_DOMAINDRIVENARCHITECTURE}\" }}}}" > ~/.lein/profiles.clj
|
- echo "{:auth {:repository-auth {#\"clojars\" {:username \"${CLOJARS_USER}\" :password \"${CLOJARS_TOKEN_DOMAINDRIVENARCHITECTURE}\" }}}}" > ~/.lein/profiles.clj
|
||||||
|
|
||||||
|
.only-master: &only-master
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_REF_NAME == "master"'
|
||||||
|
when: always
|
||||||
|
- when: never
|
||||||
|
|
||||||
test-cljs:
|
test-cljs:
|
||||||
<<: *cljs
|
<<: *cljs
|
||||||
|
<<: *only-master
|
||||||
stage: build_and_test
|
stage: build_and_test
|
||||||
script:
|
script:
|
||||||
- shadow-cljs compile test
|
- shadow-cljs compile test
|
||||||
|
|
||||||
test-clj:
|
test-clj:
|
||||||
<<: *clj
|
<<: *clj
|
||||||
|
<<: *only-master
|
||||||
stage: build_and_test
|
stage: build_and_test
|
||||||
script:
|
script:
|
||||||
- lein test
|
- lein test
|
||||||
|
|
||||||
test-schema:
|
test-schema:
|
||||||
<<: *clj
|
<<: *clj
|
||||||
|
<<: *only-master
|
||||||
stage: build_and_test
|
stage: build_and_test
|
||||||
script:
|
script:
|
||||||
- lein uberjar
|
- lein uberjar
|
||||||
|
@ -78,6 +87,7 @@ test-schema:
|
||||||
|
|
||||||
package-uberjar:
|
package-uberjar:
|
||||||
<<: *clj
|
<<: *clj
|
||||||
|
<<: *only-master
|
||||||
stage: package
|
stage: package
|
||||||
script:
|
script:
|
||||||
- sha256sum target/uberjar/c4k-nextcloud-standalone.jar > target/uberjar/c4k-nextcloud-standalone.jar.sha256
|
- sha256sum target/uberjar/c4k-nextcloud-standalone.jar > target/uberjar/c4k-nextcloud-standalone.jar.sha256
|
||||||
|
@ -87,6 +97,7 @@ package-uberjar:
|
||||||
- target/uberjar
|
- target/uberjar
|
||||||
|
|
||||||
sast:
|
sast:
|
||||||
|
<<: *only-master
|
||||||
variables:
|
variables:
|
||||||
SAST_EXCLUDED_ANALYZERS:
|
SAST_EXCLUDED_ANALYZERS:
|
||||||
bandit, brakeman, flawfinder, gosec, kubesec, phpcs-security-audit,
|
bandit, brakeman, flawfinder, gosec, kubesec, phpcs-security-audit,
|
||||||
|
@ -109,7 +120,7 @@ release:
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
stage: upload
|
stage: upload
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG != null'
|
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null'
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- target/uberjar
|
- target/uberjar
|
||||||
|
@ -129,7 +140,7 @@ nextcloud-image-test-publish:
|
||||||
image: domaindrivenarchitecture/devops-build:latest
|
image: domaindrivenarchitecture/devops-build:latest
|
||||||
stage: image
|
stage: image
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG != null'
|
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != null'
|
||||||
script:
|
script:
|
||||||
- cd infrastructure/docker-nextcloud && pyb image test publish
|
- cd infrastructure/docker-nextcloud && pyb image test publish
|
||||||
|
|
||||||
|
@ -137,13 +148,15 @@ backup-image-test-publish:
|
||||||
image: domaindrivenarchitecture/devops-build:latest
|
image: domaindrivenarchitecture/devops-build:latest
|
||||||
stage: image
|
stage: image
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG != null'
|
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != null'
|
||||||
script:
|
script:
|
||||||
- cd infrastructure/docker-backup && pyb image test publish
|
- cd infrastructure/docker-backup && pyb image test publish
|
||||||
|
|
||||||
nextcloud-integrationtest:
|
nextcloud-integrationtest:
|
||||||
stage: integrationtest
|
stage: integrationtest
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_BRANCH == "integration-local"'
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in a new issue