This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
79 lines (69 loc) · 1.61 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
image: clojure:alpine
cache:
key: "$CI_JOB_NAME"
paths:
- .m2
untracked: true
variables:
LC_ALL: "C"
compile-js:
stage: test
script:
- lein do clean, cljsbuild once min
idiomatic?:
stage: test
script:
- lein kibit
allow_failure: true
lint:
image: borkdude/clj-kondo
stage: test
script:
- clj-kondo --lint src/discuss
allow_failure: true
# ------------------------------------------------------------------------------
deploy-dev:
image: clojure:openjdk-8-lein-alpine
stage: deploy
tags:
- ht
before_script:
- apk add --no-cache ca-certificates
- rm -f mc
- wget https://dl.minio.io/client/mc/release/linux-amd64/mc
- chmod +x mc
- ./mc config host add cn https://s3.cs.uni-duesseldorf.de $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
script:
- lein do clean, cljsbuild once min
- ./mc cp resources/public/js/compiled/discuss.js cn/argyou/discuss.js
only:
- develop
deploy-stable:
image: clojure:openjdk-8-lein-alpine
stage: deploy
tags:
- ht
before_script:
- apk add --no-cache ca-certificates
- rm -f mc
- wget https://dl.minio.io/client/mc/release/linux-amd64/mc
- chmod +x mc
- ./mc config host add cn https://s3.cs.uni-duesseldorf.de $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
script:
- lein do clean, cljsbuild once min
- ./mc cp resources/public/js/compiled/discuss.js cn/argyou/discuss_stable.js
only:
- master
pages:
stage: deploy
before_script:
- rm -rf public
- mkdir public
script:
- lein codox
- mv target/docs/* public
artifacts:
paths:
- public
only:
- develop