Skip to content

Commit c309758

Browse files
committed
Update Travis to use Go 1.6.2; fix broken links/images.
sourcegraph.com doesn't support status and views badges anymore.
1 parent ba62c45 commit c309758

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.travis.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1+
sudo: false
12
language: go
2-
33
go:
4-
- 1.4
5-
4+
- 1.6.2
5+
- tip
6+
matrix:
7+
allow_failures:
8+
- go: tip
9+
fast_finish: true
610
before_install:
711
- mkdir -p $HOME/gopath/src/sourcegraph.com/sourcegraph
812
- mv $TRAVIS_BUILD_DIR $HOME/gopath/src/sourcegraph.com/sourcegraph/go-diff
913
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/sourcegraph.com/sourcegraph/go-diff
1014
- cd $TRAVIS_BUILD_DIR
11-
1215
install:
13-
- go get golang.org/x/tools/cmd/vet
14-
16+
- # 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).
1517
script:
1618
- go get -t -v ./...
17-
- diff -u <(echo -n) <(gofmt -d ./)
18-
- go tool vet ./
19+
- diff -u <(echo -n) <(gofmt -d -s .)
20+
- go tool vet .
1921
- go test -v -race ./...

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# go-diff [![Build Status](https://travis-ci.org/sourcegraph/go-diff.svg?branch=master)](https://travis-ci.org/sourcegraph/go-diff) [![status](https://sourcegraph.com/api/repos/sourcegraph.com/sourcegraph/go-diff/.badges/status.png)](https://sourcegraph.com/sourcegraph.com/sourcegraph/go-diff) [![views](https://sourcegraph.com/api/repos/sourcegraph.com/sourcegraph/go-diff/.counters/views.png)](https://sourcegraph.com/sourcegraph.com/sourcegraph/go-diff)
1+
# go-diff [![Build Status](https://travis-ci.org/sourcegraph/go-diff.svg?branch=master)](https://travis-ci.org/sourcegraph/go-diff) [![GoDoc](https://godoc.org/github.com/sourcegraph/go-diff?status.svg)](https://godoc.org/github.com/sourcegraph/go-diff)
22

33
Diff parser and printer for Go.
44

@@ -14,7 +14,7 @@ go get -u sourcegraph.com/sourcegraph/go-diff/diff
1414
Usage
1515
-----
1616

17-
It doesn't actually compute a diff. It only reads in (and prints out, given a Go struct representation) unified diff output, such as the following. The corresponding data structure in Go is the [`diff.FileDiff`](https://sourcegraph.com/sourcegraph.com/sourcegraph/go-diff/.GoPackage/sourcegraph.com/sourcegraph/go-diff/diff/.def/FileDiff) struct.
17+
It doesn't actually compute a diff. It only reads in (and prints out, given a Go struct representation) unified diff output, such as the following. The corresponding data structure in Go is the [`diff.FileDiff`](https://sourcegraph.com/github.com/sourcegraph/go-diff/-/def/GoPackage/github.com/sourcegraph/go-diff/diff/-/FileDiff) struct.
1818

1919
```diff
2020
--- oldname 2009-10-11 15:12:20.000000000 -0700

0 commit comments

Comments
 (0)