File tree 4 files changed +11
-21
lines changed
4 files changed +11
-21
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ profile: unit-test-clean peer-docker testenv
197
197
198
198
# Generates a string to the terminal suitable for manual augmentation / re-issue, useful for running tests by hand
199
199
test-cmd :
200
- @echo " go test -tags \" $( GO_TAGS) \" -ldflags \" $( GO_LDFLAGS ) \" "
200
+ @echo " go test -tags \" $( GO_TAGS) \"
201
201
202
202
docker : docker-thirdparty $(patsubst % ,build/image/% /$(DUMMY ) , $(IMAGES ) )
203
203
@@ -305,6 +305,7 @@ build/image/%/$(DUMMY): Makefile build/image/%/payload build/image/%/Dockerfile
305
305
@echo " Building docker $( TARGET) -image"
306
306
$(DBUILD ) -t $(DOCKER_NS ) /fabric-$(TARGET ) $(@D )
307
307
docker tag $(DOCKER_NS ) /fabric-$(TARGET ) $(DOCKER_NS ) /fabric-$(TARGET ) :$(DOCKER_TAG )
308
+ docker tag $(DOCKER_NS ) /fabric-$(TARGET ) $(DOCKER_NS ) /fabric-$(TARGET ) :$(ARCH ) -latest
308
309
@touch $@
309
310
310
311
build/gotools.tar.bz2 : build/docker/gotools
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright London Stock Exchange 2016 All Rights Reserved.
3
3
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
4
+ SPDX-License-Identifier: Apache-2.0
15
5
*/
16
6
17
7
package metadata
18
8
19
9
// Variables defined by the Makefile and passed in with ldflags
20
- var Version string
21
- var BaseVersion string
22
- var BaseDockerLabel string
23
- var DockerNamespace string
24
- var BaseDockerNamespace string
25
- var Experimental string
10
+ var Version string = "latest"
11
+ var BaseVersion string = "0.4.6"
12
+ var BaseDockerLabel string = "org.hyperledger.fabric"
13
+ var DockerNamespace string = "hyperledger"
14
+ var BaseDockerNamespace string = "hyperledger"
15
+ var Experimental string = "true"
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ unit-tests:
8
8
links :
9
9
- couchdb
10
10
environment :
11
- - GO_LDFLAGS
12
11
- GO_TAGS
13
12
- OUTPUT
14
13
- TEST_PKGS=${TEST_PKGS}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ run_tests() {
57
57
58
58
local parallel=" $@ "
59
59
if [ -n " ${parallel} " ]; then
60
- time go test ${flags} -tags " $GO_TAGS " -ldflags " $GO_LDFLAGS " ${parallel[@]} -short -timeout=20m
60
+ time go test ${flags} -tags " $GO_TAGS " ${parallel[@]} -short -timeout=20m
61
61
fi
62
62
}
63
63
@@ -67,7 +67,7 @@ run_tests_with_coverage() {
67
67
# Initialize profile.cov
68
68
for pkg in $@ ; do
69
69
:> profile_tmp.cov
70
- go test -cover -coverprofile=profile_tmp.cov -tags " $GO_TAGS " -ldflags " $GO_LDFLAGS " $pkg -timeout=20m
70
+ go test -cover -coverprofile=profile_tmp.cov -tags " $GO_TAGS " $pkg -timeout=20m
71
71
tail -n +2 profile_tmp.cov >> profile.cov || echo " Unable to append coverage for $pkg "
72
72
done
73
73
You can’t perform that action at this time.
0 commit comments