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:
include:
- os: linux
go: "1.9.x"
go: "1.10.x"
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
go: "1.10.x"
sudo: true
- os: osx
go: "1.10.x"
env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0
go: "1.11beta2"
env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0 RESTIC_BUILD_SOLARIS=0
branches:
only:

View file

@ -194,12 +194,12 @@ func TestTestWalkFiles(t *testing.T) {
},
},
want: map[string]string{
"foo": "<File>",
"subdir": "<Dir>",
"foo": "<File>",
"subdir": "<Dir>",
filepath.FromSlash("subdir/subfile"): "<File>",
"x": "<Dir>",
filepath.FromSlash("x/y"): "<Dir>",
filepath.FromSlash("x/y/link"): "<Symlink>",
"x": "<Dir>",
filepath.FromSlash("x/y"): "<Dir>",
filepath.FromSlash("x/y/link"): "<Symlink>",
},
},
}
@ -373,7 +373,7 @@ func TestTestEnsureSnapshot(t *testing.T) {
}{
{
files: map[string]interface{}{
"foo": TestFile{Content: "foo"},
"foo": TestFile{Content: "foo"},
filepath.FromSlash("subdir/subfile"): TestFile{Content: "bar"},
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
if err := run("go", "run", "build.go"); err != nil {
if err := run("go", "run", "build.go", "-v", "-T"); err != nil {
return err
}