<commit_before>sudo: false
language: go
go:
  - 1.5
  - 1.6
# Install g++-4.8 to support std=c++11 for github.com/google/certificate-transparency/go/merkletree
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - g++-4.8
install:
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi

# Used by the certdb tests
services:
  - postgresql
before_install:
  # CFSSL consists of multiple Go packages, which refer to each other by
  # their absolute GitHub path, e.g. github.com/cloudflare/crypto/pkcs11key.
  # That means, by default, if someone forks the repo and makes changes across
  # multiple packages within CFSSL, Travis won't pass for the branch on their
  # own repo. To fix that, we add a symlink.
  - mkdir -p $TRAVIS_BUILD_DIR $GOPATH/src/github.com/cloudflare
  - test ! -d $GOPATH/src/github.com/cloudflare/cfssl && ln -s $TRAVIS_BUILD_DIR $GOPATH/src/github.com/cloudflare/cfssl || true

# Only build pull requests, pushes to the master branch, and branches
# starting with `test-`. This is a convenient way to push branches to
# your own fork of the repostiory to ensure Travis passes before submitting
# a PR. For instance, you might run:
# git push myremote branchname:test-branchname
branches:
  only:
    - master
    - /^test-.*$/

before_script:
  - go get golang.org/x/tools/cmd/vet
  - go get golang.org/x/tools/cmd/goimports
  - go get github.com/onsi/gomega
  - go get github.com/onsi/ginkgo
  - go get -u github.com/golang/lint/golint
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/modocache/gover
  - go get -v github.com/GeertJohan/fgt
  # Setup DBs + run migrations
  - go get bitbucket.org/liamstask/goose/cmd/goose
  - if [[ $(uname -s) == 'Linux' ]]; then
      psql -c 'create database certdb_development;' -U postgres;
      goose -path $GOPATH/src/github.com/cloudflare/cfssl/certdb/pg up;
    fi
script:
  - ./test.sh
notifications:
  email:
    recipients:
    - <EMAIL>
    - <EMAIL>
    - <EMAIL>
    - <EMAIL>
    on_success: never
    on_failure: change
env:
  global:
    - secure: "<KEY>
    - GO15VENDOREXPERIMENT=1
  matrix:
    - BUILD_TAGS="postgresql"
    - BUILD_TAGS="pkcs11 postgresql"
matrix:
  include:
    - os: osx
      go: 1.5
      env: BUILD_TAGS=
after_success:
  - bash <(curl -s https://codecov.io/bash) -f coverprofile.txt
<commit_msg>Remove pkcs11 build tag from Travis CI<commit_after>sudo: false
language: go
go:
  - 1.5
  - 1.6
# Install g++-4.8 to support std=c++11 for github.com/google/certificate-transparency/go/merkletree
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - g++-4.8
install:
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi

# Used by the certdb tests
services:
  - postgresql
before_install:
  # CFSSL consists of multiple Go packages, which refer to each other by
  # their absolute GitHub path, e.g. github.com/cloudflare/crypto/pkcs11key.
  # That means, by default, if someone forks the repo and makes changes across
  # multiple packages within CFSSL, Travis won't pass for the branch on their
  # own repo. To fix that, we add a symlink.
  - mkdir -p $TRAVIS_BUILD_DIR $GOPATH/src/github.com/cloudflare
  - test ! -d $GOPATH/src/github.com/cloudflare/cfssl && ln -s $TRAVIS_BUILD_DIR $GOPATH/src/github.com/cloudflare/cfssl || true

# Only build pull requests, pushes to the master branch, and branches
# starting with `test-`. This is a convenient way to push branches to
# your own fork of the repostiory to ensure Travis passes before submitting
# a PR. For instance, you might run:
# git push myremote branchname:test-branchname
branches:
  only:
    - master
    - /^test-.*$/

before_script:
  - go get golang.org/x/tools/cmd/vet
  - go get golang.org/x/tools/cmd/goimports
  - go get github.com/onsi/gomega
  - go get github.com/onsi/ginkgo
  - go get -u github.com/golang/lint/golint
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/modocache/gover
  - go get -v github.com/GeertJohan/fgt
  # Setup DBs + run migrations
  - go get bitbucket.org/liamstask/goose/cmd/goose
  - if [[ $(uname -s) == 'Linux' ]]; then
      psql -c 'create database certdb_development;' -U postgres;
      goose -path $GOPATH/src/github.com/cloudflare/cfssl/certdb/pg up;
    fi
script:
  - ./test.sh
notifications:
  email:
    recipients:
    - <EMAIL>
    - <EMAIL>
    - <EMAIL>
    - <EMAIL>
    on_success: never
    on_failure: change
env:
  global:
    - secure: "<KEY>
    - GO15VENDOREXPERIMENT=1
  matrix:
    - BUILD_TAGS="postgresql"
matrix:
  include:
    - os: osx
      go: 1.6
      env: BUILD_TAGS=
after_success:
  - bash <(curl -s https://codecov.io/bash) -f coverprofile.txt

{'fraction_non_alphanumeric': 0.1191598799828547, 'fraction_numerical': 0.009001285897985427, 'mean_word_length': 2.911986588432523, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '4244967', 'n_tokens_mistral': 1784, 'n_tokens_neox': 1711, 'n_words': 480}