@@ -5,7 +5,7 @@ _defaults: &defaults
55 environment :
66 TERM : dumb
77 docker :
8- - image : circleci/openjdk:8-jdk
8+ - image : s22s/rasterframes-circleci:latest
99
1010_setenv : &setenv
1111 name : set CloudRepo credentials
@@ -19,81 +19,111 @@ _delenv: &unsetenv
1919
2020_restore_cache : &restore_cache
2121 keys :
22- - v2 -dependencies-{{ checksum "build.sbt" }}
23- - v2 -dependencies-
22+ - v3 -dependencies-{{ checksum "build.sbt" }}
23+ - v3 -dependencies-
2424
2525_save_cache : &save_cache
26- key : v2 -dependencies--{{ checksum "build.sbt" }}
26+ key : v3 -dependencies--{{ checksum "build.sbt" }}
2727 paths :
28+ - ~/.cache/coursier
2829 - ~/.ivy2/cache
2930 - ~/.sbt
30- - ~/.rf_cache
31+ - ~/.local
3132
3233jobs :
33- staticAnalysis :
34+ test :
3435 << : *defaults
35-
36+ resource_class : large
3637 steps :
3738 - checkout
3839 - run : *setenv
3940 - restore_cache :
4041 << : *restore_cache
4142
42- - run : cat /dev/null | sbt dependencyCheck
43- - run : cat /dev/null | sbt --debug dumpLicenseReport
43+ - run : ulimit -c unlimited -S
44+ - run : cat /dev/null | sbt -batch core/test datasource/test experimental/test pyrasterframes/test
45+ - run :
46+ command : |
47+ mkdir -p /tmp/core_dumps
48+ cp core.* *.hs /tmp/core_dumps 2> /dev/null || true
49+ when : on_fail
4450
45- - run : *unsetenv
51+ - store_artifacts :
52+ path : /tmp/core_dumps
4653
54+ - run : *unsetenv
4755 - save_cache :
4856 << : *save_cache
49- - store_artifacts :
50- path : datasource/target/scala-2.11/dependency-check-report.html
51- destination : dependency-check-report-datasource.html
52- - store_artifacts :
53- path : experimental/target/scala-2.11/dependency-check-report.html
54- destination : dependency-check-report-experimental.html
55- - store_artifacts :
56- path : core/target/scala-2.11/dependency-check-report.html
57- destination : dependency-check-report-core.html
58- - store_artifacts :
59- path : pyrasterframes/target/scala-2.11/dependency-check-report.html
60- destination : dependency-check-report-pyrasterframes.html
6157
62- test :
58+ docs :
6359 << : *defaults
64- resource_class : large
60+ resource_class : xlarge
6561 steps :
6662 - checkout
6763 - run : *setenv
64+
6865 - restore_cache :
6966 << : *restore_cache
7067
71- - run : sudo apt-get install python-pip pandoc && pip install setuptools # required for pyrasterframes testing
72- - run : cat /dev/null | sbt test
68+ - run : ulimit -c unlimited -S
69+ - run : pip3 install --quiet --user -r pyrasterframes/src/main/python/requirements.txt
70+ - run :
71+ command : cat /dev/null | sbt makeSite
72+ no_output_timeout : 30m
73+
74+ - run :
75+ command : |
76+ mkdir -p /tmp/core_dumps
77+ cp core.* *.hs /tmp/core_dumps 2> /dev/null || true
78+ when : on_fail
79+
80+ - store_artifacts :
81+ path : /tmp/core_dumps
82+
83+ - store_artifacts :
84+ path : docs/target/site
85+ destination : rf-site
7386
7487 - run : *unsetenv
88+
7589 - save_cache :
7690 << : *save_cache
7791
78- publish :
92+ it :
7993 << : *defaults
80- resource_class : large
94+ resource_class : xlarge
8195 steps :
8296 - checkout
8397 - run : *setenv
98+
8499 - restore_cache :
85100 << : *restore_cache
86101
87- - run : sudo apt-get install python-pip pandoc && pip install setuptools # required for pyrasterframes testing
88- - run : cat /dev/null | sbt test
89- - run : cat /dev/null | sbt publish
102+ - run : ulimit -c unlimited -S
103+ - run :
104+ command : cat /dev/null | sbt it:test
105+ no_output_timeout : 30m
106+
107+ - run :
108+ command : |
109+ mkdir -p /tmp/core_dumps
110+ cp core.* *.hs /tmp/core_dumps 2> /dev/null || true
111+ when : on_fail
112+
113+ - store_artifacts :
114+ path : /tmp/core_dumps
90115
91116 - run : *unsetenv
117+
92118 - save_cache :
93119 << : *save_cache
94120
95- it :
96- << : *defaults
121+ itWithoutGdal :
122+ working_directory : ~/repo
123+ environment :
124+ TERM : dumb
125+ docker :
126+ - image : circleci/openjdk:8-jdk
97127 resource_class : xlarge
98128 steps :
99129 - checkout
@@ -110,6 +140,36 @@ jobs:
110140 - save_cache :
111141 << : *save_cache
112142
143+ staticAnalysis :
144+ << : *defaults
145+
146+ steps :
147+ - checkout
148+ - run : *setenv
149+ - restore_cache :
150+ << : *restore_cache
151+
152+ - run : cat /dev/null | sbt dependencyCheck
153+ - run : cat /dev/null | sbt --debug dumpLicenseReport
154+
155+ - run : *unsetenv
156+
157+ - save_cache :
158+ << : *save_cache
159+ - store_artifacts :
160+ path : datasource/target/scala-2.11/dependency-check-report.html
161+ destination : dependency-check-report-datasource.html
162+ - store_artifacts :
163+ path : experimental/target/scala-2.11/dependency-check-report.html
164+ destination : dependency-check-report-experimental.html
165+ - store_artifacts :
166+ path : core/target/scala-2.11/dependency-check-report.html
167+ destination : dependency-check-report-core.html
168+ - store_artifacts :
169+ path : pyrasterframes/target/scala-2.11/dependency-check-report.html
170+ destination : dependency-check-report-pyrasterframes.html
171+
172+
113173workflows :
114174 version : 2
115175 all :
@@ -119,20 +179,29 @@ workflows:
119179 filters :
120180 branches :
121181 only :
122- - /astraea\/ feature\/.*-its/
123- - publish :
182+ - /feature\/.*-its/
183+ - itWithoutGdal :
124184 filters :
125185 branches :
126186 only :
127- - astraea/develop
128- nightlyReleaseAstraea :
187+ - /feature\/.*-its/
188+ - docs :
189+ filters :
190+ branches :
191+ only :
192+ - /feature\/.*docs.*/
193+ - /docs\/.*/
194+
195+ nightly :
129196 triggers :
130197 - schedule :
131198 cron : " 0 8 * * *"
132199 filters :
133200 branches :
134201 only :
135- - astraea/ develop
202+ - develop
136203 jobs :
137204 - it
138- - staticAnalysis
205+ - itWithoutGdal
206+ - docs
207+ # - staticAnalysis
0 commit comments