Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Alexander Neumann
996012a85a Fix formatting for gofmt with Go 1.11 2018-08-01 23:56:11 +02:00
Alexander Neumann
aee25502d2 Try Go 1.11beta2 on Travis 2018-08-01 23:55:30 +02:00
3 changed files with 10 additions and 15 deletions

View file

@ -4,17 +4,12 @@ sudo: false
matrix: matrix:
include: include:
- os: linux - os: linux
go: "1.9.x" go: "1.10.x"
env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0 RESTIC_BUILD_SOLARIS=0 env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0 RESTIC_BUILD_SOLARIS=0
# only run fuse and cloud backends tests on Travis for the latest Go on Linux
- os: linux - os: linux
go: "1.10.x" go: "1.11beta2"
sudo: true env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0 RESTIC_BUILD_SOLARIS=0
- os: osx
go: "1.10.x"
env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0
branches: branches:
only: only:

View file

@ -194,12 +194,12 @@ func TestTestWalkFiles(t *testing.T) {
}, },
}, },
want: map[string]string{ want: map[string]string{
"foo": "<File>", "foo": "<File>",
"subdir": "<Dir>", "subdir": "<Dir>",
filepath.FromSlash("subdir/subfile"): "<File>", filepath.FromSlash("subdir/subfile"): "<File>",
"x": "<Dir>", "x": "<Dir>",
filepath.FromSlash("x/y"): "<Dir>", filepath.FromSlash("x/y"): "<Dir>",
filepath.FromSlash("x/y/link"): "<Symlink>", filepath.FromSlash("x/y/link"): "<Symlink>",
}, },
}, },
} }
@ -373,7 +373,7 @@ func TestTestEnsureSnapshot(t *testing.T) {
}{ }{
{ {
files: map[string]interface{}{ files: map[string]interface{}{
"foo": TestFile{Content: "foo"}, "foo": TestFile{Content: "foo"},
filepath.FromSlash("subdir/subfile"): TestFile{Content: "bar"}, filepath.FromSlash("subdir/subfile"): TestFile{Content: "bar"},
filepath.FromSlash("x/y/link"): TestSymlink{Target: filepath.FromSlash("../../foo")}, filepath.FromSlash("x/y/link"): TestSymlink{Target: filepath.FromSlash("../../foo")},
}, },

View file

@ -246,7 +246,7 @@ func (env *TravisEnvironment) RunTests() error {
} }
// run the build script // run the build script
if err := run("go", "run", "build.go"); err != nil { if err := run("go", "run", "build.go", "-v", "-T"); err != nil {
return err return err
} }