forked from bhb/expound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
170 lines (143 loc) · 5.89 KB
/
config.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# Clojure CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-clojure/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: cimg/clojure:1.11.1-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/repo
environment:
LEIN_ROOT: "true"
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "project.clj" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: lein with-profile +test-common,+test-web,+dev deps
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "project.clj" }}
test_current:
docker:
# specify the version you desire here
- image: cimg/clojure:1.11.1-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/repo
environment:
LEIN_ROOT: "true"
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "project.clj" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: bin/install-clojure
- run: bin/install-bb
- run: npm install
- run: lein check
- run:
name: 'Check artifact isolation + lack of reflection/boxing warnings'
# skip the first warning, which I believe is in leiningen itself
command: lein with-profile -dev,+check check 2>&1 | grep -v "form-init.*clj" | bin/check-for-warnings.sh
- run: TEST_CHECK_FACTOR=20 lein with-profile test-common test
- run: lein clean
- run: lein with-profile test-web cljsbuild once test 2> >(tee -a stderr.log >&2)
- run: cat stderr.log | grep -v "Options passed to ClojureScript compiler" | grep -v "Use of undeclared Var goog.math.Long" | bin/check-for-warnings.sh
- run: bin/tests
- run: bb bin/bb_ex.clj 2> >(tee -a stderr2.log >&2)
- run: cat stderr2.log | bin/check-for-warnings.sh
- run: bb bin/bb_test.clj
- run: bin/golden_master_test.sh
- run: bin/deps_test.sh
- run: bin/build_comparison_doc.sh
- run: git diff --exit-code -- doc/comparison.md # make sure above step does not modify examples
- run: lein jar && diff -u <(jar tf target/*.jar | sort) <(cat expected-jar-contents.txt | sort)
test_cljs_old:
docker:
# specify the version you desire here
- image: cimg/clojure:1.11.1-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/repo
environment:
LEIN_ROOT: "true"
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "project.clj" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: bin/install-clojure
- run: npm install
# The version number (1.10.439) is important - it's the last version in which CLJS itself
# did NOT include 'goog.string.format' so it's the last version that will reproduce https://github.com/bhb/expound/issues/183
- run: clojure -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.439"}}}' -m cljs.main -re node -i test/cljs_test.cljs
- run: lein clean && lein with-profile test-web,clj-1.9.0,cljs-1.10.238,orch-2020.07.12-1 cljsbuild once test && bin/tests
- run: lein clean && lein with-profile test-web,clj-1.9.0,cljs-1.10.339,orch-2020.07.12-1 cljsbuild once test && bin/tests
- run: lein clean && lein with-profile test-web,clj-1.10.0,cljs-1.10.439,orch-2020.07.12-1 cljsbuild once test && bin/tests
- run: lein clean && lein with-profile test-web,clj-1.10.0,cljs-1.10.597 cljsbuild once test && bin/tests
- run: lein clean && lein with-profile test-web,orch-2019.02.06-1 cljsbuild once test && bin/tests
test_clj_old:
docker:
# specify the version you desire here
- image: cimg/clojure:1.11.1-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/repo
environment:
LEIN_ROOT: "true"
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "project.clj" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: lein with-profile test-common,clj-1.9.0,spec-0.2.168 test
- run: lein with-profile test-common,clj-1.10.0,spec-0.2.176 test
- run: lein with-profile test-common,clj-1.10.0,orch-2019.02.06-1 test
workflows:
version: 2
build_test:
jobs:
- build
- test_current:
requires:
- build
- test_cljs_old:
requires:
- build
- test_clj_old:
requires:
- build