<commit_before>sudo: required
services:
  - docker

language: go

go:
- "1.10.3"

env:
  global:
    - secure: "<KEY>"
    - secure: "<KEY>
    - secure: "<KEY>

install:
- go get github.com/tools/godep
- go get github.com/bifurcation/mint
- go get github.com/cheekybits/genny/generic
- go get github.com/hashicorp/golang-lru
- go get -t github.com/yinqiwen/gsnova
script:
- godep save && tar cf tmp-deploy.tar Godeps vendor local common remote main.go  server.json && tar uf tmp-deploy.tar -C remote Procfile manifest.yml && cp remote/Procfile ./ && bzip2 tmp-deploy.tar && mv tmp-deploy.tar.bz2 gsnova-paas-deploy-with-dependencies-${TRAVIS_TAG}.tar.bz2
- export CGO_ENABLED=0
- GOOS=windows GOARCH=386 go build -ldflags="-s -w" -o gsnova.exe github.com/yinqiwen/gsnova
- tar cjf gsnova_windows_386-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova.exe
- GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o gsnova.exe github.com/yinqiwen/gsnova
- tar cjf gsnova_windows_amd64-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova.exe
- GOOS=linux GOARCH=386 go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_386-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_amd64-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w" github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_armv5-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_armv6-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_armv7-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=arm64  go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_arm64-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=mipsle  go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_mipsle-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=mips  go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_mips-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_macos_amd64-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova


deploy:<commit_msg>update travis<commit_after>sudo: required
services:
  - docker

language: go

go:
- "1.10.3"

env:
  global:
    - secure: "<KEY>"
    - secure: "<KEY>
    - secure: "<KEY>

install:
- go get github.com/golang/dep/cmd/dep
- go get -t github.com/yinqiwen/gsnova
script:
- dep init -gopath 
- echo "\n[metadata.heroku]\n  root-package = \"github.com/yinqiwen/gsnova\"\n  go-version = \"go1.10.3\"\n  ensure = \"false\"\n" >> Gopkg.toml
- tar cf tmp-deploy.tar Gopkg.toml Gopkg.lock vendor local common remote main.go  server.json && tar uf tmp-deploy.tar -C remote Procfile manifest.yml  && bzip2 tmp-deploy.tar && mv tmp-deploy.tar.bz2 gsnova-paas-deploy-with-dependencies-${TRAVIS_TAG}.tar.bz2
- export CGO_ENABLED=0
- GOOS=windows GOARCH=386 go build -ldflags="-s -w" -o gsnova.exe github.com/yinqiwen/gsnova
- tar cjf gsnova_windows_386-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova.exe
- GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o gsnova.exe github.com/yinqiwen/gsnova
- tar cjf gsnova_windows_amd64-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova.exe
- GOOS=linux GOARCH=386 go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_386-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_amd64-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w" github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_armv5-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_armv6-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_armv7-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=arm64  go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_arm64-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=mipsle  go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_mipsle-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=linux GOARCH=mips  go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_linux_mips-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova
- GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w"  github.com/yinqiwen/gsnova
- tar cjf gsnova_macos_amd64-${TRAVIS_TAG}.tar.bz2 client.json server.json hosts.json cnipset.txt gsnova


deploy:
{'fraction_non_alphanumeric': 0.13151320485367596, 'fraction_numerical': 0.019628836545324768, 'mean_word_length': 4.175438596491228, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '165460', 'n_tokens_mistral': 2478, 'n_tokens_neox': 2304, 'n_words': 470}