<commit_before>language: go
go_import_path: github.com/coreos/etcd

sudo: required

services: docker

go:
- 1.10.1
- tip

notifications:
  on_success: never
  on_failure: never

env:
  matrix:
  - TARGET=linux-amd64-build
  - TARGET=linux-amd64-unit
  - TARGET=linux-amd64-fmt
  - TARGET=linux-amd64-integration-1-cpu
  - TARGET=linux-amd64-integration-2-cpu
  - TARGET=linux-amd64-integration-4-cpu
  - TARGET=linux-amd64-functional
  - TARGET=linux-386-build
  - TARGET=linux-386-unit
  - TARGET=darwin-amd64-build
  - TARGET=windows-amd64-build
  - TARGET=linux-arm-build
  - TARGET=linux-arm64-build
  - TARGET=linux-ppc64le-build
  - TARGET=linux-amd64-fmt-unit-go-tip

matrix:
  fast_finish: true
  allow_failures:
  - go: tip
    env: TARGET=linux-amd64-fmt-unit-go-tip
  exclude:
  - go: tip
    env: TARGET=linux-amd64-build
  - go: tip
    env: TARGET=linux-amd64-unit
  - go: tip
    env: TARGET=linux-amd64-fmt
  - go: tip
    env: TARGET=linux-amd64-integration-1-cpu
  - go: tip
    env: TARGET=linux-amd64-integration-2-cpu
  - go: tip
    env: TARGET=linux-amd64-integration-4-cpu
  - go: tip
    env: TARGET=linux-amd64-functional
  - go: tip
    env: TARGET=linux-386-build
  - go: tip
    env: TARGET=linux-386-unit
  - go: tip
    env: TARGET=darwin-amd64-build
  - go: tip
    env: TARGET=windows-amd64-build
  - go: tip
    env: TARGET=linux-arm-build
  - go: tip
    env: TARGET=linux-arm64-build
  - go: tip
    env: TARGET=linux-ppc64le-build
  - go: 1.10.1
    env: TARGET=linux-amd64-fmt-unit-go-tip

before_install:
- if [[ $TRAVIS_GO_VERSION == 1.* ]]; then docker pull gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION}; fi

install:
- go get -t -d ./...

script:
 - echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
 - >
    case "${TARGET}" in
      linux-amd64-build)
        docker run --rm \
          --volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
          /bin/bash -c "GOARCH=amd64 PASSES='build' ./test"
        ;;
      linux-amd64-unit)
        docker run --rm \
          --volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \<commit_msg>travis: use Go 1.10.2<commit_after>language: go
go_import_path: github.com/coreos/etcd

sudo: required

services: docker

go:
- 1.10.2
- tip

notifications:
  on_success: never
  on_failure: never

env:
  matrix:
  - TARGET=linux-amd64-build
  - TARGET=linux-amd64-unit
  - TARGET=linux-amd64-fmt
  - TARGET=linux-amd64-integration-1-cpu
  - TARGET=linux-amd64-integration-2-cpu
  - TARGET=linux-amd64-integration-4-cpu
  - TARGET=linux-amd64-functional
  - TARGET=linux-386-build
  - TARGET=linux-386-unit
  - TARGET=darwin-amd64-build
  - TARGET=windows-amd64-build
  - TARGET=linux-arm-build
  - TARGET=linux-arm64-build
  - TARGET=linux-ppc64le-build
  - TARGET=linux-amd64-fmt-unit-go-tip

matrix:
  fast_finish: true
  allow_failures:
  - go: tip
    env: TARGET=linux-amd64-fmt-unit-go-tip
  exclude:
  - go: tip
    env: TARGET=linux-amd64-build
  - go: tip
    env: TARGET=linux-amd64-unit
  - go: tip
    env: TARGET=linux-amd64-fmt
  - go: tip
    env: TARGET=linux-amd64-integration-1-cpu
  - go: tip
    env: TARGET=linux-amd64-integration-2-cpu
  - go: tip
    env: TARGET=linux-amd64-integration-4-cpu
  - go: tip
    env: TARGET=linux-amd64-functional
  - go: tip
    env: TARGET=linux-386-build
  - go: tip
    env: TARGET=linux-386-unit
  - go: tip
    env: TARGET=darwin-amd64-build
  - go: tip
    env: TARGET=windows-amd64-build
  - go: tip
    env: TARGET=linux-arm-build
  - go: tip
    env: TARGET=linux-arm64-build
  - go: tip
    env: TARGET=linux-ppc64le-build
  - go: 1.10.2
    env: TARGET=linux-amd64-fmt-unit-go-tip

before_install:
- if [[ $TRAVIS_GO_VERSION == 1.* ]]; then docker pull gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION}; fi

install:
- go get -t -d ./...

script:
 - echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
 - >
    case "${TARGET}" in
      linux-amd64-build)
        docker run --rm \
          --volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
          /bin/bash -c "GOARCH=amd64 PASSES='build' ./test"
        ;;
      linux-amd64-unit)
        docker run --rm \
          --volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
{'fraction_non_alphanumeric': 0.14555808656036445, 'fraction_numerical': 0.0387243735763098, 'mean_word_length': 2.721186440677966, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4384184', 'n_tokens_mistral': 1914, 'n_tokens_neox': 1777, 'n_words': 281}