Skip to content

Commit 6c5acf5

Browse files
committed
Merge pull request #257 from scaleway/fix-travis
Fix travis
2 parents bcf357d + 3f7aa93 commit 6c5acf5

File tree

350 files changed

+25687
-2197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

350 files changed

+25687
-2197
lines changed

Godeps/Godeps.json

Lines changed: 69 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ INSTALL_LIST = $(foreach int, $(COMMANDS), $(int)_install)
5353
IREF_LIST = $(foreach int, $(COMMANDS) $(PACKAGES), $(int)_iref)
5454
TEST_LIST = $(foreach int, $(COMMANDS) $(PACKAGES), $(int)_test)
5555
FMT_LIST = $(foreach int, $(COMMANDS) $(PACKAGES), $(int)_fmt)
56-
COVERPROFILE_LIST = $(foreach int, $(PACKAGES), $(int)/profile.out)
56+
COVERPROFILE_LIST = $(foreach int, $(subst $(GODIR),./,$(PACKAGES)), $(int)/profile.out)
5757

5858

5959
.PHONY: $(CLEAN_LIST) $(TEST_LIST) $(FMT_LIST) $(INSTALL_LIST) $(BUILD_LIST) $(IREF_LIST)
@@ -150,6 +150,7 @@ gocyclo:
150150

151151
.PHONY: godep-save
152152
godep-save:
153+
go get github.com/tools/godep
153154
$(GODEP) save $(PACKAGES) $(COMMANDS)
154155

155156

@@ -172,11 +173,11 @@ travis_login:
172173
.PHONY: cover
173174
cover: profile.out
174175

175-
$(COVERPROFILE_LIST): $(SOURCES)
176+
$(COVERPROFILE_LIST):: $(SOURCES)
176177
rm -f $@
177178
$(GOCOVER) -ldflags $(LDFLAGS) -coverpkg=./pkg/... -coverprofile=$@ ./$(dir $@)
178179

179-
profile.out: $(COVERPROFILE_LIST)
180+
profile.out:: $(COVERPROFILE_LIST)
180181
rm -f $@
181182
echo "mode: set" > $@
182183
cat ./pkg/*/profile.out | grep -v mode: | sort -r | awk '{if($$1 != last) {print $$0;last=$$1}}' >> $@
@@ -193,7 +194,7 @@ travis_cleanup:
193194
@if [ "$(TRAVIS_SCALEWAY_TOKEN)" -a "$(TRAVIS_SCALEWAY_ORGANIZATION)" ]; then \
194195
./scw stop -t $(shell ./scw ps -q) || true; \
195196
./scw rm $(shell ./scw ps -aq) || true; \
196-
./scw rmi $(shell ./scw images -q) || true; \
197+
./scw rmi $(shell ./scw images -f organization=me -q) || true; \
197198
fi
198199

199200

pkg/cli/x_billing.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import (
1010
"text/tabwriter"
1111
"time"
1212

13+
"github.com/Sirupsen/logrus"
14+
"github.com/docker/go-units"
1315
"github.com/scaleway/scaleway-cli/pkg/commands"
1416
"github.com/scaleway/scaleway-cli/pkg/pricing"
1517
"github.com/scaleway/scaleway-cli/pkg/utils"
16-
"github.com/Sirupsen/logrus"
17-
"github.com/docker/docker/pkg/units"
1818
)
1919

2020
var cmdBilling = &Command{

pkg/commands/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"time"
1010

11-
"github.com/docker/docker/pkg/units"
11+
"github.com/docker/go-units"
1212
)
1313

1414
// EventsArgs are arguments passed to `RunEvents`

pkg/commands/history.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"text/tabwriter"
1010
"time"
1111

12-
"github.com/docker/docker/pkg/units"
12+
"github.com/docker/go-units"
1313
"github.com/scaleway/scaleway-cli/pkg/utils"
1414
)
1515

pkg/commands/images.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"time"
1414

1515
"github.com/Sirupsen/logrus"
16-
"github.com/docker/docker/pkg/units"
16+
"github.com/docker/go-units"
1717
"github.com/renstrom/fuzzysearch/fuzzy"
1818
"github.com/scaleway/scaleway-cli/pkg/api"
1919
"github.com/scaleway/scaleway-cli/pkg/utils"

pkg/commands/images_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func TestRunImages_realAPI(t *testing.T) {
8080

8181
firstLine := lines[0]
8282
colNames := strings.Fields(firstLine)
83-
So(colNames, ShouldResemble, []string{"REPOSITORY", "TAG", "IMAGE", "ID", "CREATED", "VIRTUAL", "SIZE"})
83+
So(colNames, ShouldResemble, []string{"REPOSITORY", "TAG", "IMAGE", "ID", "CREATED", "VIRTUAL", "SIZE", "REGION", "ARCH"})
8484

8585
// FIXME: test public images
8686
})
@@ -101,7 +101,7 @@ func TestRunImages_realAPI(t *testing.T) {
101101

102102
firstLine := lines[0]
103103
colNames := strings.Fields(firstLine)
104-
So(colNames, ShouldResemble, []string{"REPOSITORY", "TAG", "IMAGE", "ID", "CREATED", "VIRTUAL", "SIZE"})
104+
So(colNames, ShouldResemble, []string{"REPOSITORY", "TAG", "IMAGE", "ID", "CREATED", "VIRTUAL", "SIZE", "REGION", "ARCH"})
105105

106106
// FIXME: test public images
107107
// FIXME: test bootscripts

pkg/commands/ps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"time"
1212

1313
"github.com/Sirupsen/logrus"
14-
"github.com/docker/docker/pkg/units"
14+
"github.com/docker/go-units"
1515
"github.com/renstrom/fuzzysearch/fuzzy"
1616

1717
"github.com/scaleway/scaleway-cli/pkg/utils"

vendor/github.com/davecgh/go-spew/LICENSE

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)