File tree 5 files changed +10
-22
lines changed
5 files changed +10
-22
lines changed Original file line number Diff line number Diff line change 1
1
sudo : false
2
2
language : go
3
3
go :
4
- - " 1.10.x"
5
- - " 1.x"
6
- - " tip"
7
- matrix :
8
- allow_failures :
9
- - go : tip
10
- fast_finish : true
11
- before_install :
12
- - mkdir -p $HOME/gopath/src/sourcegraph.com/sourcegraph
13
- - mv $TRAVIS_BUILD_DIR $HOME/gopath/src/sourcegraph.com/sourcegraph/go-diff
14
- - export TRAVIS_BUILD_DIR=$HOME/gopath/src/sourcegraph.com/sourcegraph/go-diff
15
- - cd $TRAVIS_BUILD_DIR
16
- install :
17
- - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
4
+ - " 1.12.x"
18
5
script :
19
6
- GO111MODULE=on go get -t -v ./...
20
7
- diff -u <(echo -n) <(gofmt -d -s .)
21
- - GO111MODULE=on go tool vet .
22
- - GO111MODULE=on go test -v -race ./...
8
+ - GO111MODULE=on go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
9
+ after_success :
10
+ - bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 7
7
"log"
8
8
"os"
9
9
10
- "sourcegraph .com/sourcegraph/go-diff/diff"
10
+ "github .com/sourcegraph/go-diff/diff"
11
11
)
12
12
13
13
// A diagnostic program to aid in debugging diff parsing or printing
Original file line number Diff line number Diff line change 1
1
// Package diff provides a parser for unified diffs.
2
- package diff // import "sourcegraph.com/sourcegraph/go-diff/diff"
2
+ package diff
Original file line number Diff line number Diff line change 1
- diff --git Godeps/_workspace/src/sourcegraph .com/sourcegraph/go-diff/diff/testdata/empty.diff Godeps/_workspace/src/sourcegraph .com/sourcegraph/go-diff/diff/testdata/empty.diff
1
+ diff --git Godeps/_workspace/src/github .com/sourcegraph/go-diff/diff/testdata/empty.diff Godeps/_workspace/src/github .com/sourcegraph/go-diff/diff/testdata/empty.diff
2
2
new file mode 100644
3
3
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
4
- diff --git Godeps/_workspace/src/sourcegraph .com/sourcegraph/go-diff/diff/testdata/empty_new.diff Godeps/_workspace/src/sourcegraph .com/sourcegraph/go-diff/diff/testdata/empty_new.diff
4
+ diff --git Godeps/_workspace/src/github .com/sourcegraph/go-diff/diff/testdata/empty_new.diff Godeps/_workspace/src/github .com/sourcegraph/go-diff/diff/testdata/empty_new.diff
5
5
new file mode 100644
6
6
index 0000000000000000000000000000000000000000..527e2e70f57b02e709f53e3ac2b7f59e2b5a46bc
7
7
--- /dev/null
8
- +++ Godeps/_workspace/src/sourcegraph .com/sourcegraph/go-diff/diff/testdata/empty_new.diff
8
+ +++ Godeps/_workspace/src/github .com/sourcegraph/go-diff/diff/testdata/empty_new.diff
9
9
@@ -0,0 +1,2 @@
10
10
+ @@ -1,1 +0,0 @@
11
11
+ -b
Original file line number Diff line number Diff line change 1
- module sourcegraph .com/sourcegraph/go-diff
1
+ module github .com/sourcegraph/go-diff
2
2
3
3
require (
4
4
github.com/gogo/protobuf v1.1.1
You can’t perform that action at this time.
0 commit comments