<commit_before>sudo: required
language: java
jdk:
- oraclejdk8

addons:
  apt:
    packages:
    - oracle-java8-installer

services:
  - docker

#cache:
#  directories:
#  - "$HOME/google-cloud-sdk/"

env:
- PATH=$PATH:${HOME}/google-cloud-sdk/bin CLOUDSDK_CORE_DISABLE_PROMPTS=1

before_install:
- openssl aes-256-cbc -K $encrypted_72f876c3e1a5_key -iv $encrypted_72f876c3e1a5_iv
  -in gcloud/credentials.tar.gz.enc -out gcloud/credentials.tar.gz -d
#- if [ ! -d ${HOME}/google-cloud-sdk ]; then echo Installing Google Cloud SDK ...;
#  curl https://sdk.cloud.google.com | bash; fi
- rm -rfv ${HOME}/google-cloud-sdk
- curl https://sdk.cloud.google.com | bash
- tar -xzf gcloud/credentials.tar.gz
- mkdir -p lib
- gcloud auth activate-service-account --key-file client-secret.json
- gcloud version
- gcloud --quiet components install kubectl

install:
- gcloud config set project aircraftnoise100

deploy:
  skip_cleanup: true
  provider: script
  script: gcloud/deploy
  on:<commit_msg>Using scripts in gcloud/ for dockerizing and pushing the app<commit_after>sudo: required
language: java
jdk:
- oraclejdk8

addons:
  apt:
    packages:
    - oracle-java8-installer

services:
  - docker

#cache:
#  directories:
#  - "$HOME/google-cloud-sdk/"

env:
- PATH=$PATH:${HOME}/google-cloud-sdk/bin CLOUDSDK_CORE_DISABLE_PROMPTS=1

before_install:
- openssl aes-256-cbc -K $encrypted_72f876c3e1a5_key -iv $encrypted_72f876c3e1a5_iv
  -in gcloud/credentials.tar.gz.enc -out gcloud/credentials.tar.gz -d
#- if [ ! -d ${HOME}/google-cloud-sdk ]; then echo Installing Google Cloud SDK ...;
#  curl https://sdk.cloud.google.com | bash; fi
- rm -rfv ${HOME}/google-cloud-sdk
- curl https://sdk.cloud.google.com | bash
- tar -xzf gcloud/credentials.tar.gz
- mkdir -p lib
- gcloud auth activate-service-account --key-file client-secret.json
- gcloud version
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- mv ./kubectl ${HOME}/google-cloud-sdk/bin

install:
- gcloud config set project aircraftnoise100

deploy:
  skip_cleanup: true
  provider: script
  script: gcloud/deploy
  on:
{'fraction_non_alphanumeric': 0.13396481732070364, 'fraction_numerical': 0.02345511953089761, 'mean_word_length': 3.6991525423728815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '284192', 'n_tokens_mistral': 865, 'n_tokens_neox': 812, 'n_words': 176}