<commit_before>language: go

go:
  - 1.3.3
  - 1.4.2

os:
  - linux
  - osx

env: SFTP_PATH="/usr/lib/openssh/sftp-server" GOX_OS="linux darwin openbsd freebsd"

notifications:
  irc:
    channels:
      - "chat.freenode.net#restic"
    on_success: change
    on_failure: change
    skip_join: true

install:
  - 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
  - goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true
  - gofmt -l *.go */*.go */*/*.go
  - test -z "$(gofmt -l *.go */*.go */*/*.go)"<commit_msg>Test travis<commit_after>language: go

go:
  - 1.3.3
  - 1.4.2

os:
  - linux
  - osx

env: GOX_OS="linux darwin openbsd freebsd"

notifications:
  irc:
    channels:
      - "chat.freenode.net#restic"
    on_success: change
    on_failure: change
    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"

script:
  - 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)"
{'fraction_non_alphanumeric': 0.15645449137418205, 'fraction_numerical': 0.012492563950029744, 'mean_word_length': 2.533613445378151, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5641273', 'n_tokens_mistral': 719, 'n_tokens_neox': 687, 'n_words': 156}