<commit_before>dist: bionic
sudo: required
env:
  global:
  - CHANGE_MINIKUBE_NONE_USER: true
  matrix:
  - TEST_SUITE=unit-test
  - TEST_SUITE=e2e-test
  - TEST_SUITE=e2e-k8s-test
cache:
  directories:
  - tmp/cache
  - tmp/mod
  - /var/lib/docker
language: go
go:
- '1.13'
go_import_path: openpitrix.io/openpitrix
addons:
  apt:
    packages:
    - socat
    - ebtables
before_install:
- sudo rm /usr/bin/docker
- curl -fsSL get.docker.com | sh
- if [ $TEST_SUITE'' == "e2e-k8s-test" ]; then
  ./deploy/kubernetes/scripts/install-minikube.sh &&
  ./deploy/kubernetes/scripts/init-helm.sh &&
  kubectl cluster-info;
  fi
before_script:
- docker --version
- docker-compose --version
- make fmt-check
- make build
- make compose-up
- sleep 20
script:
- travis_wait 30 make $TEST_SUITE
before_deploy:
- make clean
- make release-openpitrix-$TRAVIS_TAG
- make bin-release-openpitrix-$TRAVIS_TAG
deploy:
- provider: releases
  api_key:
    secure: <KEY>
  file:
  - deploy/openpitrix-$TRAVIS_TAG-kubernetes.tar.gz
  - deploy/openpitrix-$TRAVIS_TAG-hyperpitrix-kubernetes.tar.gz
  - deploy/openpitrix-$TRAVIS_TAG-docker-compose.tar.gz
  - deploy/openpitrix-$TRAVIS_TAG-linux-bin.tar.gz
  - deploy/openpitrix-$TRAVIS_TAG-darwin-bin.tar.gz
  - deploy/openpitrix-$TRAVIS_TAG-windows-bin.tar.gz
  skip_cleanup: true
  on:
    repo: openpitrix/openpitrix
    tags: true
- provider: script
  script: bash image_package_upload $encrypted_31dac1cc4b44_key $encrypted_31dac1cc4b44_iv
  on:
    branch: master
    repo: openpitrix/openpitrix
- provider: script
  script: ./docker_push $TRAVIS_TAG core
  on:
    tags: true
    repo: openpitrix/openpitrix
- provider: script
  script: ./docker_push latest core
  on:
    branch: master
    repo: openpitrix/openpitrix
- provider: script
  script: ./docker_push $TRAVIS_TAG addition
  on:
    tags: true
    repo: openpitrix/openpitrix
- provider: script
  script: ./docker_push latest addition
  on:
    branch: master
    repo: openpitrix/openpitrix<commit_msg>Speed up travis build (#978)<commit_after>dist: bionic
sudo: required
env:
  global:
  - CHANGE_MINIKUBE_NONE_USER: true
  matrix:
  - TEST_SUITE=unit-test
  - TEST_SUITE=e2e-test
  - TEST_SUITE=e2e-k8s-test
cache:
  directories:
  - tmp/cache
  - tmp/mod
  - /var/lib/docker
language: go
go:
- '1.13'
go_import_path: openpitrix.io/openpitrix
addons:
  apt:
    packages:
    - socat
    - ebtables
before_install:
- sudo rm /usr/bin/docker
- curl -fsSL get.docker.com | sh
- if [ $TEST_SUITE'' == "e2e-k8s-test" ]; then
  ./deploy/kubernetes/scripts/install-minikube.sh &&
  ./deploy/kubernetes/scripts/init-helm.sh &&
  kubectl cluster-info;
  fi
before_script:
- docker --version
- docker-compose --version
- make fmt-check
- make build
- make compose-up
- sleep 20
script:
- travis_wait 30 make $TEST_SUITE
before_deploy:
- make clean
- make release-openpitrix-$TRAVIS_TAG
- make bin-release-openpitrix-$TRAVIS_TAG
deploy:
- provider: releases
  api_key:
    secure: <KEY>
  file:
  - deploy/openpitrix-$TRAVIS_TAG-kubernetes.tar.gz
  - deploy/openpitrix-$TRAVIS_TAG-hyperpitrix-kubernetes.tar.gz
  - deploy/openpitrix-$TRAVIS_TAG-docker-compose.tar.gz
  - deploy/openpitrix-$TRAVIS_TAG-linux-bin.tar.gz
  - deploy/openpitrix-$TRAVIS_TAG-darwin-bin.tar.gz
  - deploy/openpitrix-$TRAVIS_TAG-windows-bin.tar.gz
  skip_cleanup: true
  on:
    repo: openpitrix/openpitrix
    tags: true
- provider: script
  script: bash image_package_upload $encrypted_31dac1cc4b44_key $encrypted_31dac1cc4b44_iv
  on:
    branch: master
    repo: openpitrix/openpitrix
- provider: script
  script: rm -rf tmp/ && ./docker_push $TRAVIS_TAG core
  on:
    tags: true
    repo: openpitrix/openpitrix
- provider: script
  script: rm -rf tmp/ && ./docker_push latest core
  on:
    branch: master
    repo: openpitrix/openpitrix
- provider: script
  script: rm -rf tmp/ && ./docker_push $TRAVIS_TAG addition
  on:
    tags: true
    repo: openpitrix/openpitrix
- provider: script
  script: rm -rf tmp/ && ./docker_push latest addition
  on:
    branch: master
    repo: openpitrix/openpitrix
{'fraction_non_alphanumeric': 0.11384312761249078, 'fraction_numerical': 0.012539955741332678, 'mean_word_length': 3.369495166487648, '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': '165074', 'n_tokens_mistral': 1613, 'n_tokens_neox': 1542, 'n_words': 307}