-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEarthfile
More file actions
65 lines (57 loc) · 1.66 KB
/
Earthfile
File metadata and controls
65 lines (57 loc) · 1.66 KB
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
VERSION 0.6
build-all:
BUILD ./functions/oracle+compile
BUILD ./functions/result+compile
BUILD ./functions/scheduler+compile
BUILD ./functions/image+compile
BUILD ./functions/status+compile
test:
BUILD ./functions/oracle+test
BUILD ./functions/result+test
BUILD ./functions/scheduler+test
# BUILD ./functions/image+test
# BUILD ./functions/status+test
BUILD ./functions/lib+test
LOCALLY
RUN cat /dev/null > report.json
RUN cat \
./functions/oracle/reports/report.json \
./functions/result/reports/report.json \
./functions/scheduler/reports/report.json \
./functions/lib/reports/report.json \
> report.json
# RUN mkdir coverage && cp \
# ./functions/oracle/reports/coverage.out \
# ./functions/result/reports/coverage.out \
# ./functions/scheduler/reports/coverage.out \
# ./functions/lib/reports/coverage.out \
# ./coverage/
sonar:
FROM sonarsource/sonar-scanner-cli:latest
BUILD +test
COPY --dir . /app
RUN --secret SONAR_TOKEN \
sonar-scanner \
-Dsonar.projectKey=pixelart \
-Dsonar.sources=/app \
-Dsonar.host.url=http://localhost:9000
sonar-local:
LOCALLY
BUILD +test
RUN sonar-scanner
deploy:
BUILD +build-all
BUILD ./infrastructure+apply
destroy:
BUILD +build-all
BUILD ./infrastructure+destroy
update-deps:
BUILD ./functions/lib+update
BUILD ./functions/oracle+update
BUILD ./functions/result+update
BUILD ./functions/scheduler+update
BUILD ./functions/image+update
BUILD ./functions/status+update
debug:
FROM sonarsource/sonar-scanner-cli:latest
RUN curl http://localhost:9000