2015-03-14 14:38:59 +00:00
|
|
|
language: go
|
2015-05-06 18:42:11 +00:00
|
|
|
|
2015-03-14 12:19:52 +00:00
|
|
|
go:
|
2015-03-14 14:07:29 +00:00
|
|
|
- 1.3.3
|
|
|
|
- 1.4.2
|
2015-03-14 14:34:30 +00:00
|
|
|
- release
|
2015-03-14 14:37:12 +00:00
|
|
|
|
2015-04-25 17:31:38 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2015-03-14 14:37:12 +00:00
|
|
|
notifications:
|
2015-04-26 11:09:40 +00:00
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#restic"
|
|
|
|
on_success: change
|
|
|
|
on_failure: change
|
2015-03-14 12:19:52 +00:00
|
|
|
|
2015-05-06 18:42:11 +00:00
|
|
|
env: GOX_OS="linux darwin openbsd freebsd"
|
|
|
|
|
2015-03-14 12:19:52 +00:00
|
|
|
install:
|
2015-04-26 10:23:00 +00:00
|
|
|
- go get github.com/mitchellh/gox
|
2015-05-06 18:42:11 +00:00
|
|
|
- gox -build-toolchain -os "$GOX_OS"
|
2015-03-14 12:19:52 +00:00
|
|
|
- go get -v -t ./...
|
|
|
|
|
|
|
|
script:
|
2015-03-22 11:58:32 +00:00
|
|
|
- go build -ldflags "-s" ./...
|
2015-03-22 12:09:14 +00:00
|
|
|
- go build -ldflags "-s" -o restic ./cmd/restic
|
2015-05-06 18:42:11 +00:00
|
|
|
- sh -c 'cd cmd/restic && gox -verbose -os "$GOX_OS" && ls -al'
|
2015-03-28 14:51:08 +00:00
|
|
|
- go test -v ./...
|
2015-03-14 12:19:52 +00:00
|
|
|
- ./testsuite.sh
|
2015-03-28 14:53:33 +00:00
|
|
|
- sh -c "cd backend && go test -v -test.sftppath /usr/lib/openssh/sftp-server ./..."
|
2015-03-25 15:17:18 +00:00
|
|
|
- gofmt -l *.go */*.go */*/*.go
|
|
|
|
- test -z "$(gofmt -l *.go */*.go */*/*.go)"
|