mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 02:48:55 +00:00
Test travis
This commit is contained in:
parent
9853fbcf48
commit
cf27a0fdc7
22
.travis.yml
22
.travis.yml
@ -8,7 +8,7 @@ os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
env: SFTP_PATH="/usr/lib/openssh/sftp-server" GOX_OS="linux darwin openbsd freebsd"
|
||||
env: GOX_OS="linux darwin openbsd freebsd"
|
||||
|
||||
notifications:
|
||||
irc:
|
||||
@ -19,23 +19,19 @@ notifications:
|
||||
skip_join: true
|
||||
|
||||
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/mitchellh/gox
|
||||
- gox -build-toolchain -os "$GOX_OS"
|
||||
- go version
|
||||
- go env
|
||||
- make env
|
||||
- make goenv
|
||||
- make list
|
||||
|
||||
script:
|
||||
- make restic
|
||||
- make gox
|
||||
- GOTESTFLAGS="" make test
|
||||
- GOARCH=386 make test
|
||||
- make test-integration
|
||||
- GOARCH=386 make test-integration
|
||||
- make all.cov
|
||||
- gox -verbose -os "${GOX_OS}" ./cmd/restic
|
||||
- go run run_tests.go all.cov
|
||||
- GOARCH=386 go test ./...
|
||||
- goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true
|
||||
- gofmt -l *.go */*.go */*/*.go
|
||||
- test -z "$(gofmt -l *.go */*.go */*/*.go)"
|
||||
|
Loading…
Reference in New Issue
Block a user