forked from alexklibisz/elastiknn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.jvm.yml
95 lines (81 loc) · 3.2 KB
/
Taskfile.jvm.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
version: '3'
tasks:
clean:
desc: Clean all JVM artifacts
cmds:
- "{{ .CMD_GRADLE }} clean"
compile:
desc: Compile all JVM source code using Gradle
sources:
- build.gradle
- "elastiknn-*/**"
cmds:
- "{{ .CMD_GRADLE }} compileScala compileJava compileTestScala compileTestJava unifiedScalaDocs"
docs:
desc: Generate JVM docs using Gradle
cmds:
- "{{ .CMD_GRADLE }} unifiedScaladocs"
test:
desc: Run JVM tests using Gradle
cmds:
- "{{ .CMD_GRADLE }} test"
libraries:publish:local:
desc: Publish a local release of JVM libraries
cmds:
- "{{ .CMD_GRADLE }} publishToMavenLocal -x signMavenPublication -Pversion={{ .VERSION }}"
libraries:publish:snapshot:
desc: Publish a snapshot release of JVM libraries to Sonatype
cmds:
- "{{ .CMD_GRADLE }} publish -Pversion={{ .VERSION }}"
libraries:publish:release:
desc: Publish an official release of JVM libraries to Sonatype
status:
- curl -f -s -o /dev/null {{ .GITHUB_URL }}/releases/tag/{{ .VERSION }}
cmds:
- "{{ .CMD_GRADLE }} publish"
docs:publish:
desc: Publish documentation to the website
status:
- curl -f -s -o /dev/null https://{{ .SITE_ARCH_DIR }}/{{ .VERSION }}/scaladoc/index.html
cmds:
- "{{ .CMD_GRADLE }} unifiedScaladocs"
- ssh {{ .SITE_SSH_ALIAS }} mkdir -p {{ .SITE_ARCH_DIR }}/{{ .VERSION }}
- rsync -av --delete build/docs/scaladoc {{ .SITE_SSH_ALIAS }}:{{ .SITE_ARCH_DIR }}/{{ .VERSION }}
- ssh {{ .SITE_SSH_ALIAS }} mkdir -p {{ .SITE_MAIN_DIR }}/{{ .VERSION }}
- rsync -av --delete build/docs/scaladoc {{ .SITE_SSH_ALIAS }}:{{ .SITE_MAIN_DIR }}/docs
plugin:publish:local:
desc: Publish a local snapshot of the plugin
sources:
- build.gradle
- "elastiknn-*/**"
cmds:
- "{{ .CMD_GRADLE }} assemble"
plugin:publish:snapshot:
desc: Publish a snapshot release to Github
cmds:
- "{{ .CMD_GRADLE }} assemble"
- echo {{ .VERSION }} > release.md
- echo "" >> release.md
- "git log $(git tag | grep -v SNAPSHOT | tail -n1)...HEAD --format='- %h: %s' >> release.md"
- hub release delete {{ .VERSION }} || true
- hub release create -p -F release.md -a elastiknn-plugin/build/distributions/elastiknn-*.zip {{ .VERSION }}
plugin:publish:release:
desc: Publish an official release to Github
status:
- curl -f -s -o /dev/null {{ .GITHUB_URL }}/releases/tag/{{ .VERSION }}
cmds:
- "{{ .CMD_GRADLE }} assemble"
- echo {{ .VERSION }} > release.md
- echo "" >> release.md
- "git log $(git tag | grep -v SNAPSHOT | tail -n1)...HEAD --format='- %h: %s' >> release.md"
- hub release create -p -F release.md -a elastiknn-plugin/build/distributions/elastiknn-*.zip {{ .VERSION }}
run:gradle:
desc: Run Elasticsearch using gradle
cmds:
- "{{ .CMD_GRADLE }} :plugin:run --data-dir={{ .DATA_DIR | default \"/tmp/elastiknn\" }} -Dtests.heap.size={{ .HEAP | default \"4G\" }} -Dtests.es.thread_pool.search.size={{ .THREADS | default 1 }} {{ .DEBUG }}"
run:debug:
desc: Run Elasticsearch in debug mode using gradle
cmds:
- task: run:gradle
vars:
DEBUG: "--debug-jvm"