<commit_before>language: go

go_import_path: github.com/tnozicka/openshift-acme

go:
- 1.7
- 1.8
- master

matrix:
  include:
  - go: 1.9
    env: AUTHORITATIVE=true OPENSHIFT_VERSIONS="v1.4.1 v1.5.1 v3.6.0"
    sudo: required
    services:
     - docker
    addons:
      apt:
        packages:
        - bsdtar

before_install:
- |
  if [ ${AUTHORITATIVE} ]; then
    go get golang.org/x/tools/cmd/goimports
    go get github.com/golang/dep/cmd/dep
    go get github.com/openshift/source-to-image/cmd/s2i
    curl -L https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | bsdtar -xvf- -C ${GOPATH}/bin/ && chmod +x ${GOPATH}/bin/ngrok
    tmp=`mktemp`
    echo 'DOCKER_OPTS="$DOCKER_OPTS --insecure-registry 172.30.0.0/16"' > ${tmp}
    sudo mv ${tmp} /etc/default/docker
    sudo mount --make-shared /
    sudo service docker restart
    version="v3.6.0" commitId="c4dd4cf" && curl -L https://github.com/openshift/origin/releases/download/${version}/openshift-origin-client-tools-${version}-${commitId}-linux-64bit.tar.gz | tar -f - -x -z --strip-components=1 -C ${GOPATH}/bin/ openshift-origin-client-tools-${version}-${commitId}-linux-64bit/oc
  fi

install:<commit_msg>travis: update go versions<commit_after>language: go

go_import_path: github.com/tnozicka/openshift-acme

go:
- 1.7.x
- 1.8.x
- master

matrix:
  include:
  - go: 1.9.x
    env: AUTHORITATIVE=true OPENSHIFT_VERSIONS="v1.4.1 v1.5.1 v3.6.0"
    sudo: required
    services:
     - docker
    addons:
      apt:
        packages:
        - bsdtar

before_install:
- |
  if [ ${AUTHORITATIVE} ]; then
    go get golang.org/x/tools/cmd/goimports
    go get github.com/golang/dep/cmd/dep
    go get github.com/openshift/source-to-image/cmd/s2i
    curl -L https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | bsdtar -xvf- -C ${GOPATH}/bin/ && chmod +x ${GOPATH}/bin/ngrok
    tmp=`mktemp`
    echo 'DOCKER_OPTS="$DOCKER_OPTS --insecure-registry 172.30.0.0/16"' > ${tmp}
    sudo mv ${tmp} /etc/default/docker
    sudo mount --make-shared /
    sudo service docker restart
    version="v3.6.0" commitId="c4dd4cf" && curl -L https://github.com/openshift/origin/releases/download/${version}/openshift-origin-client-tools-${version}-${commitId}-linux-64bit.tar.gz | tar -f - -x -z --strip-components=1 -C ${GOPATH}/bin/ openshift-origin-client-tools-${version}-${commitId}-linux-64bit/oc
  fi

install:
{'fraction_non_alphanumeric': 0.162839248434238, 'fraction_numerical': 0.0325678496868476, 'mean_word_length': 2.9343185550082103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5056773', 'n_tokens_mistral': 1024, 'n_tokens_neox': 956, 'n_words': 162}