<commit_before>sudo: false
language: go

go:
  - 1.7
  
install:
  # install glide and gox
  - go get github.com/Masterminds/glide
  - go get github.com/mitchellh/gox
  # install dependencies using glide, fixing vendoring while at it
  - glide install --strip-vendor
  
script:
  # build for all platforms with gox
  - gox -arch="amd64" -os="darwin linux windows" -output "dist/{{.OS}}-{{.Arch}}/{{.Dir}}" .
  # create one package per platform
  - tar -cvzf packer-builder-upcloud-${TRAVIS_TAG}-darwin-amd64.tar.gz -C dist/darwin-amd64/ .
  - tar -cvzf packer-builder-upcloud-${TRAVIS_TAG}-linux-amd64.tar.gz -C dist/linux-amd64/ .
  - zip -j packer-builder-upcloud-${TRAVIS_TAG}-windows-amd64.zip ./dist/windows-amd64/*

# deploy builds for tags to Github
deploy:
  provider: releases
  api_key:
    secure: <KEY>
  file:
    - packer-builder-upcloud-${TRAVIS_TAG}-darwin-amd64.tar.gz
    - packer-builder-upcloud-${TRAVIS_TAG}-linux-amd64.tar.gz
    - packer-builder-upcloud-${TRAVIS_TAG}-windows-amd64.zip
  on:
    repo: Jalle19/packer-builder-upcloud
    tags: true<commit_msg>Fix tar commands for uploaded releases<commit_after>sudo: false
language: go

go:
  - 1.7
  
install:
  # install glide and gox
  - go get github.com/Masterminds/glide
  - go get github.com/mitchellh/gox
  # install dependencies using glide, fixing vendoring while at it
  - glide install --strip-vendor
  
script:
  # build for all platforms with gox
  - gox -arch="amd64" -os="darwin linux windows" -output "dist/{{.OS}}-{{.Arch}}/{{.Dir}}" .
  # create one package per platform
  - tar -cvzf packer-builder-upcloud-${TRAVIS_TAG}-darwin-amd64.tar.gz -C dist/darwin-amd64/*
  - tar -cvzf packer-builder-upcloud-${TRAVIS_TAG}-linux-amd64.tar.gz -C dist/linux-amd64/*
  - zip -j packer-builder-upcloud-${TRAVIS_TAG}-windows-amd64.zip ./dist/windows-amd64/*

# deploy builds for tags to Github
deploy:
  provider: releases
  api_key:
    secure: <KEY>
  file:
    - packer-builder-upcloud-${TRAVIS_TAG}-darwin-amd64.tar.gz
    - packer-builder-upcloud-${TRAVIS_TAG}-linux-amd64.tar.gz
    - packer-builder-upcloud-${TRAVIS_TAG}-windows-amd64.zip
  on:
    repo: Jalle19/packer-builder-upcloud
    tags: true
{'fraction_non_alphanumeric': 0.1417466849565615, 'fraction_numerical': 0.02194787379972565, 'mean_word_length': 3.24031007751938, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4364709', 'n_tokens_mistral': 863, 'n_tokens_neox': 823, 'n_words': 170}