<commit_before>sudo: false
language: python
python:
- '2.7'
cache:
  directories:
  - $HOME/gcloud/
env:
- PATH=$PATH:$HOME/gcloud/google-cloud-sdk/bin GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/client_secrets.json
# Testing encrypted environment vars!
- secure: "<KEY>
- secure: "USySRXCv0jiqrSbc38WSjW3A55iXJPoG3VSoCa2HaZJAADQ3ALjBYI8wq+ZaC7IlffxLA7vHp5S6aq5xfI/GGrhKXpTq2TQcbbq4dzU2yaX/tD4XFrQuMvsI5oHQz/ys+zCccUa4uLcPetDTvuCcvtJPdr/v4aNsou+35JZ/RzyQoEXjVFtt+l+JDu8jNOrl9LgXX3nN5/wvU9bHSMpLJgJaXGpF4WhkANtY72V+Ddwj6ZhpC5hlBwKjVx8rZvphemG43uCgU65my+Nodx7l4MLk18d/nIINVkpKuoXv2wYO+A85Lt4qHkHAya+FGVtFe7Pju2M0QcDwVws+c/M+7UsKLVdl1a6o5CAJs8heAt08jZae2ro8cJiJjiSGFPjugRiFf4LWqWYiynY1Qk9ooKSjFqpSib1Myk3Mmss7Eqis07YO7S44cqCSg4JXKQialduBIC7d+UYJan9YziBUmDr+YkKTy2rTHmiqUB95TDS+G0+JCueXmNWX1Fdpy+20osoTcBbS31NFCDLMTJ/QS1QzU7OxjEd5WwQZ8WiWSGE032wyHt9rMaL9c8h9G35f5T+H5CQjaDO0wUUU0B4xZ9+REsocHELcuaVBh2yfJvLJP6ln9vxb2pdVDAytHFbZ7KH4JQz5yeyWsLabCDr+ELzos8EhQGXwJ/qvDPz9IfI="

before_install:
- openssl aes-256-cbc -K $encrypted_0f97f4d13dc8_key -iv $encrypted_0f97f4d13dc8_iv
  -in client_secrets.json.enc -out client_secrets.json -d
- if [ ! -d $HOME/gcloud/google-cloud-sdk ]; then mkdir -p $HOME/gcloud && wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
  --directory-prefix=$HOME/gcloud && cd $HOME/gcloud && tar xzf google-cloud-sdk.tar.gz
  && printf '\ny\n\ny\ny\n' | ./google-cloud-sdk/install.sh && cd $TRAVIS_BUILD_DIR;
  fi
- gcloud -q components update
- if [ -a client_secrets.json ]; then gcloud -q auth activate-service-account --key-file
  client_secrets.json; fi
- gcloud config set project causal-flame-94214
- versionlabel=$(git rev-parse --abbrev-ref HEAD)-$(date -u +"%Y%m%d-%H%M%S")

install:
- pip install -t lib -r requirements.txt

script:
- python testrunner.py $HOME/gcloud/google-cloud-sdk ./tests

after_success:
- gcloud -q preview app deploy app.yaml --version=1
<commit_msg>making secure env variables "global"<commit_after>sudo: false
language: python
python:
- '2.7'
cache:
  directories:
  - $HOME/gcloud/
env:
  global:
    - PATH=$PATH:$HOME/gcloud/google-cloud-sdk/bin GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/client_secrets.json
    - secure: "<KEY>
    - secure: "<KEY>

before_install:
- openssl aes-256-cbc -K $encrypted_0f97f4d13dc8_key -iv $encrypted_0f97f4d13dc8_iv
  -in client_secrets.json.enc -out client_secrets.json -d
- if [ ! -d $HOME/gcloud/google-cloud-sdk ]; then mkdir -p $HOME/gcloud && wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
  --directory-prefix=$HOME/gcloud && cd $HOME/gcloud && tar xzf google-cloud-sdk.tar.gz
  && printf '\ny\n\ny\ny\n' | ./google-cloud-sdk/install.sh && cd $TRAVIS_BUILD_DIR;
  fi
- gcloud -q components update
- if [ -a client_secrets.json ]; then gcloud -q auth activate-service-account --key-file
  client_secrets.json; fi
- gcloud config set project causal-flame-94214
- versionlabel=$(git rev-parse --abbrev-ref HEAD)-$(date -u +"%Y%m%d-%H%M%S")

install:
- pip install -t lib -r requirements.txt

script:
- python testrunner.py $HOME/gcloud/google-cloud-sdk ./tests

after_success:
- gcloud -q preview app deploy app.yaml --version=1

{'fraction_non_alphanumeric': 0.1270040867651682, 'fraction_numerical': 0.050298648223828984, 'mean_word_length': 5.084130019120459, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '2787904', 'n_tokens_mistral': 1542, 'n_tokens_neox': 1455, 'n_words': 199}