adjust ci
This commit is contained in:
parent
11b00bd525
commit
200bb02853
1 changed files with 4 additions and 16 deletions
|
@ -9,12 +9,6 @@ stages:
|
||||||
services:
|
services:
|
||||||
- docker:19.03.12-dind
|
- docker:19.03.12-dind
|
||||||
|
|
||||||
.only-master: &only-master
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_REF_NAME == "master"'
|
|
||||||
when: always
|
|
||||||
- when: never
|
|
||||||
|
|
||||||
.cljs-job: &cljs
|
.cljs-job: &cljs
|
||||||
image: domaindrivenarchitecture/shadow-cljs
|
image: domaindrivenarchitecture/shadow-cljs
|
||||||
cache:
|
cache:
|
||||||
|
@ -39,21 +33,18 @@ services:
|
||||||
|
|
||||||
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
|
||||||
|
@ -62,7 +53,7 @@ test-schema:
|
||||||
paths:
|
paths:
|
||||||
- target/uberjar
|
- target/uberjar
|
||||||
|
|
||||||
.report-frontend:
|
report-frontend:
|
||||||
<<: *cljs
|
<<: *cljs
|
||||||
stage: package
|
stage: package
|
||||||
script:
|
script:
|
||||||
|
@ -72,7 +63,7 @@ test-schema:
|
||||||
paths:
|
paths:
|
||||||
- target/frontend-build/build-report.html
|
- target/frontend-build/build-report.html
|
||||||
|
|
||||||
.package-frontend:
|
package-frontend:
|
||||||
<<: *cljs
|
<<: *cljs
|
||||||
stage: package
|
stage: package
|
||||||
script:
|
script:
|
||||||
|
@ -87,7 +78,6 @@ 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
|
||||||
|
@ -96,11 +86,11 @@ package-uberjar:
|
||||||
paths:
|
paths:
|
||||||
- target/uberjar
|
- target/uberjar
|
||||||
|
|
||||||
upload-clj-prerelease:
|
upload-clj-release:
|
||||||
<<: *clj
|
<<: *clj
|
||||||
stage: upload
|
stage: upload
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null'
|
- if: '$CI_COMMIT_TAG != null'
|
||||||
script:
|
script:
|
||||||
- lein deploy clojars
|
- lein deploy clojars
|
||||||
|
|
||||||
|
@ -159,5 +149,3 @@ nextcloud-integrationtest:
|
||||||
- echo "---------- Integration test -------------"
|
- echo "---------- Integration test -------------"
|
||||||
- pwd
|
- pwd
|
||||||
- cd ./src/test/resources/local-integration-test/ && ./setup-local-s3-on-k3d.sh
|
- cd ./src/test/resources/local-integration-test/ && ./setup-local-s3-on-k3d.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue