<commit_before>language: go

go:
  - tip

env:
  - "PATH=/home/travis/gopath/bin:$PATH"

install:
  - go get -u -v $(go list -f '{{join .Imports "\n"}}' ./... | sort | uniq | grep -v filemanager)
  - go get -u -v github.com/mholt/caddy/caddyhttp
  - go get github.com/gordonklaus/ineffassign
  - go get github.com/mitchellh/gox
  - go get github.com/tcnksm/ghr

script:
  - sed -i 's/\_ \"github.com\/mholt\/caddy\/caddyhttp\"/\_ \"github.com\/mholt\/caddy\/caddyhttp\"\n\_ \"github.com\/hacdias\/filemanager\/caddy\/filemanager\"/g' $GOPATH/src/github.com/mholt/caddy/caddy/caddymain/run.go
  - go build -o binary github.com/mholt/caddy/caddy
  - go build github.com/hacdias/filemanager
  - ineffassign .
  - cd cmd/filemanager
  - mkdir dist
  - gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
  - ls dist/
  - ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/<commit_msg>update travis to include tests<commit_after>language: go

go:
  - tip

env:
  - "PATH=/home/travis/gopath/bin:$PATH"

install:
  - go get -u -v $(go list -f '{{join .Imports "\n"}}' ./... | sort | uniq | grep -v filemanager)
  - go get -u -v github.com/mholt/caddy/caddyhttp
  - go get github.com/gordonklaus/ineffassign
  - go get github.com/mitchellh/gox
  - go get github.com/tcnksm/ghr

script:
  - ineffassign .
  - go test ./... -timeout 30s -tags
  - cd cmd/filemanager
  - mkdir dist
  - gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
  - ls dist/
  - ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
{'fraction_non_alphanumeric': 0.18356867779204109, 'fraction_numerical': 0.0012836970474967907, 'mean_word_length': 2.55125284738041, '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': '7405463', 'n_tokens_mistral': 656, 'n_tokens_neox': 625, 'n_words': 137}