File tree Expand file tree Collapse file tree 1 file changed +2
-100
lines changed Expand file tree Collapse file tree 1 file changed +2
-100
lines changed Original file line number Diff line number Diff line change @@ -56,119 +56,21 @@ references:
56
56
- " ~/.m2"
57
57
58
58
jobs :
59
-
60
- checkout_and_version :
61
- docker :
62
- - image : codacy/git-version:latest
63
- working_directory : ~/workdir
64
- steps :
65
- - checkout
66
- - run :
67
- name : Set version
68
- command : /bin/git-version > .version
69
- - run :
70
- name : Set Sbt version
71
- command : echo "version in ThisBuild := \"$(cat .version)\"" > version.sbt
72
- - run :
73
- name : Current version
74
- command : cat .version
75
- - persist_to_workspace :
76
- root : ~/
77
- paths :
78
- - workdir/*
79
-
80
- checkfmt :
81
- << : *default_sbt_job
82
- steps :
83
- - attach_workspace :
84
- at : ~/
85
- - *restore_sbt_cache
86
- - run :
87
- name : Check formatting
88
- command : sbt ";scalafmt::test;test:scalafmt::test;sbt:scalafmt::test"
89
- - *clean_sbt_cache
90
- - *save_sbt_cache
91
-
92
- compile :
93
- << : *default_sbt_job
94
- steps :
95
- - attach_workspace :
96
- at : ~/
97
- - *restore_sbt_cache
98
- - run :
99
- name : Compile
100
- command : sbt +compile
101
- - *clean_sbt_cache
102
- - *save_sbt_cache
103
-
104
59
test :
105
60
<< : *default_sbt_job
106
61
steps :
107
62
- attach_workspace :
108
63
at : ~/
109
64
- *restore_sbt_cache
110
65
- run :
111
- name : Compile
66
+ name : Test
112
67
command : |
113
68
sbt +test
114
69
115
- publish :
116
- << : *default_sbt_job
117
- steps :
118
- - attach_workspace :
119
- at : ~/
120
- - *restore_sbt_cache
121
- - run :
122
- name : Publish
123
- command : |
124
- sbt ";retrieveGPGKeys"
125
- sbt ";+publishSigned;sonatypeReleaseAll"
126
- - *clean_sbt_cache
127
- - *save_sbt_cache
128
-
129
- tag_version :
130
- << : *default_sbt_job
131
- steps :
132
- - attach_workspace :
133
- at : ~/
134
- - add_ssh_keys :
135
- fingerprints :
136
- - " df:83:d7:c7:d5:79:06:c2:3b:d1:fd:e2:a3:d1:12:c5"
137
- - run :
138
- name : Tag
139
- command : git tag $(cat .version) && git push --tags
140
-
141
70
workflows :
142
71
version : 2
143
72
compile_deploy :
144
73
jobs :
145
- - checkout_and_version :
146
- context : CodacyAWS
147
- - checkfmt :
148
- context : CodacyAWS
149
- requires :
150
- - checkout_and_version
151
- - compile :
152
- context : CodacyAWS
153
- requires :
154
- - checkout_and_version
155
74
- test :
156
75
context : CodacyAWS
157
- requires :
158
- - compile
159
- - publish :
160
- filters :
161
- branches :
162
- only :
163
- - master
164
- context : CodacyAWS
165
- requires :
166
- - test
167
- - tag_version :
168
- filters :
169
- branches :
170
- only :
171
- - master
172
- context : CodacyAWS
173
- requires :
174
- - publish
76
+ requires:
You can’t perform that action at this time.
0 commit comments