Compare commits
2 commits
master
...
support-go
Author | SHA1 | Date | |
---|---|---|---|
![]() |
996012a85a | ||
![]() |
aee25502d2 |
3 changed files with 10 additions and 15 deletions
11
.travis.yml
11
.travis.yml
|
@ -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:
|
||||||
|
|
|
@ -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")},
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue