2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 02:48:55 +00:00

Test travis

This commit is contained in:
Alexander Neumann 2015-06-13 13:21:00 +02:00
parent 9853fbcf48
commit cf27a0fdc7

View File

@ -8,7 +8,7 @@ os:
- linux - linux
- osx - osx
env: SFTP_PATH="/usr/lib/openssh/sftp-server" GOX_OS="linux darwin openbsd freebsd" env: GOX_OS="linux darwin openbsd freebsd"
notifications: notifications:
irc: irc:
@ -19,23 +19,19 @@ notifications:
skip_join: true skip_join: true
install: install:
- go version
- export GOBIN="$GOPATH/bin"
- export PATH="$PATH:$GOBIN"
- export GOPATH="$GOPATH:${TRAVIS_BUILD_DIR}/Godeps/_workspace"
- go env
- go get github.com/mattn/goveralls - go get github.com/mattn/goveralls
- go get github.com/mitchellh/gox - go get github.com/mitchellh/gox
- gox -build-toolchain -os "$GOX_OS" - gox -build-toolchain -os "$GOX_OS"
- go version
- go env
- make env
- make goenv
- make list
script: script:
- make restic - gox -verbose -os "${GOX_OS}" ./cmd/restic
- make gox - go run run_tests.go all.cov
- GOTESTFLAGS="" make test - GOARCH=386 go test ./...
- GOARCH=386 make test
- make test-integration
- GOARCH=386 make test-integration
- make all.cov
- goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true - goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true
- gofmt -l *.go */*.go */*/*.go - gofmt -l *.go */*.go */*/*.go
- test -z "$(gofmt -l *.go */*.go */*/*.go)" - test -z "$(gofmt -l *.go */*.go */*/*.go)"