minke-generator-go 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/generators/gomicroservice.rb +6 -3
- data/lib/generators/gomicroservice/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWViZTQ0OTU2ZjEwZjg3NmQxYjVjM2NhNjBkNjkyM2ViOWY0ZDNiZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGE0NjViZjIzNmQ3NWJkYWUxNDIzODYzY2NjMjUwOWEyMTcwYTZmMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTM4NmY3YjdkOTcxNzA2ZjRjZWMyZTA3MTcxOGFjY2UxZTgzODIyYjI3OTRj
|
10
|
+
MDNjOTdkYWJmNDc3N2MxNTM4MTI0ZWRiM2RkZmE3NTcwOWJiYWNiMjM0ZmJl
|
11
|
+
OTNjMGU0ZGMyNDFmNDNiOTBjNTRmMmEyZTRlNzkzYjMzODI2M2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2I2MjY4NmQ1ODMxMzJjMmU4OTM5ZTA2ZjQyZjkyYTY3NGNhZGIwMjI4YjQ0
|
14
|
+
OGY0OTZjNTMwY2MwMDEyYmE1NGEyMWM5MGNhYjBmMDFkMDMwNjhkMDQ3ZGU4
|
15
|
+
MTQyOTQ3OWMwM2U1NmRjMjYyNTI2NTRiNTM2NTk1MzQ5NmM1NzA=
|
@@ -14,15 +14,18 @@ module Minke
|
|
14
14
|
config.build_settings = Minke::Generators::BuildSettings.new
|
15
15
|
|
16
16
|
config.build_settings.build_commands = Minke::Generators::BuildCommands.new.tap do |bc|
|
17
|
-
bc.fetch = [['/bin/bash', '-c',
|
17
|
+
bc.fetch = [['/bin/bash', '-c', "export GOPATH=/packages && go get -v -d -t $(go list -f '{{ join .Imports \"\\n\" }}' ./... | grep -v '<%= namespace %>/<%= application_name %>') && echo Downloaded packages"]]
|
18
18
|
bc.build = [['/bin/bash', '-c', 'go build -a -installsuffix cgo -ldflags \'-s\' -o <%= application_name %>']]
|
19
|
-
bc.test = [['/bin/bash', '-c', 'go test ./...']]
|
19
|
+
bc.test = [['/bin/bash', '-c', 'go test $(go list ./... | grep -v /vendor/)']]
|
20
20
|
end
|
21
21
|
|
22
22
|
config.build_settings.docker_settings = Minke::Generators::DockerSettings.new.tap do |bs|
|
23
23
|
bs.image = 'golang:latest'
|
24
24
|
bs.env = ['CGO_ENABLED=0']
|
25
|
-
bs.binds = [
|
25
|
+
bs.binds = [
|
26
|
+
"<%= src_root %>:/go/src/<%= namespace %>/<%= application_name %>",
|
27
|
+
"<%= src_root %>/vendor:/packages/src"
|
28
|
+
]
|
26
29
|
bs.working_directory = '/go/src/<%= namespace %>/<%= application_name %>'
|
27
30
|
end
|
28
31
|
|