You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
c4k-common/.gitlab-ci.yml

62 lines
1.3 KiB
YAML

3 years ago
stages:
- build_and_test
- package
- security
- upload
3 years ago
.cljs-job: &cljs
3 months ago
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.11.4"
3 years ago
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
- .shadow-cljs/
- .m2
before_script:
- export RELEASE_ARTIFACT_TOKEN=$MEISSA_REPO_BUERO_RW
3 years ago
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- npm install
.clj-job: &clj
3 months ago
image: "domaindrivenarchitecture/ddadevops-clj:4.11.4"
3 years ago
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .m2
before_script:
- export RELEASE_ARTIFACT_TOKEN=$MEISSA_REPO_BUERO_RW
3 years ago
- mkdir -p /root/.lein
- echo "{:auth {:repository-auth {#\"clojars\" {:username \"${CLOJARS_USER}\" :password \"${CLOJARS_TOKEN_DOMAINDRIVENARCHITECTURE}\" }}}}" > ~/.lein/profiles.clj
10 months ago
.tag_only: &tag_only
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
3 years ago
test-clj:
<<: *clj
stage: build_and_test
script:
10 months ago
- pyb test_clj
3 years ago
3 years ago
test-cljs:
<<: *cljs
stage: build_and_test
script:
10 months ago
- pyb test_cljs
3 years ago
upload-clj-release:
<<: *clj
10 months ago
<<: *tag_only
stage: upload
script:
10 months ago
- pyb upload_clj
upload-cljs-release:
<<: *clj
10 months ago
<<: *tag_only
stage: upload
script:
10 months ago
- pyb upload_cljs