-
Notifications
You must be signed in to change notification settings - Fork 16
/
settings.gradle
47 lines (44 loc) · 1.6 KB
/
settings.gradle
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
plugins {
id "com.atkinsondev.object-store-cache" version "1.4.0"
}
include 'functional-test',
'publishers:gradle-plugin',
'publishers:node-script:publish-functional-test',
'server:notification:badge',
'server:notification:github',
'server:parsing:cobertura-xml-parser',
'server:parsing:coverage-parser',
'server:parsing:grouped-results-parser',
'server:parsing:jacoco-xml-parser',
'server:parsing:jest-xml-parser',
'server:parsing:junit-results-parser',
'server:parsing:performance-results-parser',
'server:parsing:test-results-parser',
'server:persistence:database-schema',
'server:persistence:object-store',
'server:server-app',
'server:server-api',
'server:server-client',
'server:test:coverage-fixtures',
'server:test:load-test',
'server:test:performance-fixtures',
'server:test:server-example-loader',
'server:test:test-fixtures',
'ui'
boolean isCI = Boolean.valueOf(System.getenv("GITHUB_ACTIONS"))
String cacheAccessKey = System.getenv("CACHE_ACCESS_KEY") ?: properties['cache_access_key']
String cacheSecretKey = System.getenv("CACHE_SECRET_KEY") ?: properties['cache_secret_key']
buildCache {
local {
enabled = !isCI
}
remote(com.atkinsondev.cache.ObjectStoreBuildCache) {
endpoint = 'sfo2.digitaloceanspaces.com'
accessKey = cacheAccessKey
secretKey = cacheSecretKey
bucket = 'projektorcache'
autoCreateBucket = true
expirationInDays = 10
push = isCI
}
}