<commit_before>language: ruby
cache: bundler
rvm:
- 2.4.1
services:
- docker
- postgresql
env:
  global:
  - REPO=quay.io/koudaiii/myapp
#  - DEPLOYMENT_NAME=${REPO##*/}
#  - NAMESPACE=$DEPLOYMENT_NAME
#  - KUBECTL_VERSION=1.6.6
#  - KOPS_VERSION=1.6.2
#  - K8S_CLUSTER=your.cluster.example.com
  - TAG_COMMIT=$TRAVIS_COMMIT
  - TAG_COMMIT_SHORT=${TRAVIS_COMMIT::7}
  - TAG_BRANCH=$(echo $TRAVIS_BRANCH | sed -e 's/[^a-zA-Z0-9-]/_/g')
  - YARN_VERSION=0.28.4
  # DOCKER_USERNAME
  - secure: "<KEY>
  # DOCKER_PASSWORD
  - secure: "<KEY>

cache: bundler

before_install:
- "npm install -g yarn@$YARN_VERSION"

before_script:
  - bundle exec rails db:setup RAILS_ENV=test

script:
  - ./script/ci-test
  - ./script/ci-assets-build
  - ./script/ci-build
  - ./script/ci-push

before_deploy:
# - curl -SL -o ./kubectl "https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl"
# - chmod +x ./kubectl
# - curl -SL -o ./kops "https://github.com/kubernetes/kops/releases/download/${KOPS_VERSION}/kops-linux-amd64"
# - chmod +x ./kops
# - "./kops export kubecfg --name $K8S_CLUSTER"

deploy:
  skip_cleanup: true
  provider: script
  script: "./script/ci-deploy"
  on:
    all_branches: true
<commit_msg>Create db<commit_after>language: ruby
cache: bundler
rvm:
- 2.4.1
services:
- docker
- postgresql
env:
  global:
  - REPO=quay.io/koudaiii/myapp
#  - DEPLOYMENT_NAME=${REPO##*/}
#  - NAMESPACE=$DEPLOYMENT_NAME
#  - KUBECTL_VERSION=1.6.6
#  - KOPS_VERSION=1.6.2
#  - K8S_CLUSTER=your.cluster.example.com
  - TAG_COMMIT=$TRAVIS_COMMIT
  - TAG_COMMIT_SHORT=${TRAVIS_COMMIT::7}
  - TAG_BRANCH=$(echo $TRAVIS_BRANCH | sed -e 's/[^a-zA-Z0-9-]/_/g')
  - YARN_VERSION=0.28.4
  # DOCKER_USERNAME
  - secure: "<KEY>
  # DOCKER_PASSWORD
  - secure: "<KEY>

cache: bundler

before_install:
- "npm install -g yarn@$YARN_VERSION"

before_script:
  - bundle exec rails db:create RAILS_ENV=test

script:
  - ./script/ci-test
  - ./script/ci-assets-build
  - ./script/ci-build
  - ./script/ci-push

before_deploy:
# - curl -SL -o ./kubectl "https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl"
# - chmod +x ./kubectl
# - curl -SL -o ./kops "https://github.com/kubernetes/kops/releases/download/${KOPS_VERSION}/kops-linux-amd64"
# - chmod +x ./kops
# - "./kops export kubecfg --name $K8S_CLUSTER"

deploy:
  skip_cleanup: true
  provider: script
  script: "./script/ci-deploy"
  on:
    all_branches: true

{'fraction_non_alphanumeric': 0.16780960064542155, 'fraction_numerical': 0.017749092375958047, 'mean_word_length': 3.3661971830985915, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '1291930', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1069, 'n_words': 163}