2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-21 02:02:21 +00:00
restic/.travis.yml

35 lines
709 B
YAML
Raw Normal View History

2015-03-14 14:38:59 +00:00
language: go
go:
2015-03-14 14:07:29 +00:00
- 1.3.3
- 1.4.2
- 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:
irc:
channels:
- "chat.freenode.net#restic"
on_success: change
on_failure: change
env: GOX_OS="linux darwin openbsd freebsd"
install:
- go get github.com/mitchellh/gox
- gox -build-toolchain -os "$GOX_OS"
- go get -v -t ./...
script:
- go build -ldflags "-s" ./...
2015-03-22 12:09:14 +00:00
- go build -ldflags "-s" -o restic ./cmd/restic
- sh -c 'cd cmd/restic && gox -verbose -os "$GOX_OS" && ls -al'
2015-03-28 14:51:08 +00:00
- go test -v ./...
- ./testsuite.sh
- sh -c "cd backend && go test -v -test.sftppath /usr/lib/openssh/sftp-server ./..."
- gofmt -l *.go */*.go */*/*.go
- test -z "$(gofmt -l *.go */*.go */*/*.go)"