1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-24 08:44:52 +00:00
restic/.travis.yml
2015-04-26 13:09:40 +02:00

31 lines
674 B
YAML

language: go
go:
- 1.3.3
- 1.4.2
- release
os:
- linux
- osx
notifications:
irc:
channels:
- "chat.freenode.net#restic"
on_success: change
on_failure: change
install:
- go get github.com/mitchellh/gox
- gox -build-toolchain -os "linux darwin"
- go get -v -t ./...
script:
- go build -ldflags "-s" ./...
- go build -ldflags "-s" -o restic ./cmd/restic
- sh -c "cd cmd/restic && gox -verbose -os 'linux darwin' && ls -al"
- 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)"