<commit_before>sudo: false
os:
- linux
cache:
  directories:
  - "$TRAVIS_BUILD_DIR/client/elm-stuff/build-artifacts"
env:
  global:
  - GOOGLE_MAPS_API=AIzaSyCrvF3M7oX7JEY74mo6hfpu3rgHdwuNIrw
  - ELM_VERSION=0.18.0
  - ELM_CSS_VERSION=0.6.1
  - CHEF_CONFIGURATION_PATH=$TRAVIS_BUILD_DIR/secrets/chef/knife.rb
  - secure: <KEY>
  secret: GIT_RSA
jobs:
  include:
  - stage: test
    env:
    - RAILS_ENV=test
    bundler_args: "--without production"
    before_install:
    - echo "Install elm-lang and elm-css"
    - echo "elm version = $ELM_VERSION"
    - echo "elm css version = $ELM_CSS_VERSION"
    - npm install -g elm@$ELM_VERSION elm-css@$ELM_CSS_VERSION
    install:
    - cd $TRAVIS_BUILD_DIR
    - echo "Install restbus (ruby on rails)"
    - cd $TRAVIS_BUILD_DIR/restbus
    - make install
    - echo "Install client (elm)"
    - cd $TRAVIS_BUILD_DIR/client
    - make install
    script:
    - echo "test restbus (ruby on rails)"
    - cd $TRAVIS_BUILD_DIR/restbus
    - bin/rspec
  - stage: deploy
    env:
    - MY_NAME=<NAME>
    before_install:
    - echo print environment variables
    - env
    - echo "decrypt file"
    - echo $encrypted_28d45bc136a3_key
    - echo $encrypted_28d45bc136a3_iv
    - openssl aes-256-cbc -K $encrypted_28d45bc136a3_key -iv $encrypted_28d45bc136a3_iv -in $TRAVIS_BUILD_DIR/travis_ci_rsa.enc -out $TRAVIS_BUILD_DIR/travis_ci_rsa -d
    - chmod go-rwx $TRAVIS_BUILD_DIR/travis_ci_rsa
    - eval `ssh-agent`
    - ssh-add $TRAVIS_BUILD_DIR/travis_ci_rsa
    - echo "clone secrets repo"
    - git clone <EMAIL>:ofer987/secrets.git $TRAVIS_BUILD_DIR/secrets
    - echo "Install cookbooks"
    - mkdir -p $TRAVIS_BUILD_DIR/cookbooks
    - echo "\tclone transit.tips cookbook"
    - git clone <EMAIL>:ofer987/cookbook-client.git $TRAVIS_BUILD_DIR/cookbooks/transit.tips
    install:
    - echo "Installing Chef DK"
    - curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -c current -P chefdk
    - mkdir -p $TRAVIS_BUILD_DIR/trusted_certs
    - cp $TRAVIS_BUILD_DIR/secrets/chef/* $TRAVIS_BUILD_DIR/
    - cp $TRAVIS_BUILD_DIR/secrets/trusted_certs/* $TRAVIS_BUILD_DIR/trusted_certs/
    - echo "Installed Chef DK"
    - echo "bootstrap a new chef-node"
    - gem install seedee --version 0.1.7
    - seedee
    - echo "bootstraped a new chef-node"
    after_install:
    - echo "Chef Version is $(chef --version)"
    - echo "Chef is installed at $(which chef)"
    - echo "Chef Client Version is $(chef-client --version)"
    - echo "Chef Client is installed at $(which chef-client)"
    - echo "Knife Version is $(knife --version)"
    - echo "Knife is installed at $(which knife)"
    script: skip
stages:
- name: test
  if: false
- name: deploy
<commit_msg>Skip test using environment variables<commit_after>sudo: false
os:
- linux
cache:
  directories:
  - "$TRAVIS_BUILD_DIR/client/elm-stuff/build-artifacts"
env:
  global:
  - GOOGLE_MAPS_API=AIzaSyCrvF3M7oX7JEY74mo6hfpu3rgHdwuNIrw
  - ELM_VERSION=0.18.0
  - ELM_CSS_VERSION=0.6.1
  - CHEF_CONFIGURATION_PATH=$TRAVIS_BUILD_DIR/secrets/chef/knife.rb
  - SKIP_TEST=TRUE
  - secure: K+wqxw53AfbYVTl+pbqDT8Hs1HMIVphbZcDppUMCrZ6oaXrowHtFUe6qzbK0+RZCdYqqx5Ymx+OI/JSBmXuXJsF4x7C3VEXTdSOcQ1P/7xUJaJbZIn40bOnhSuH12Rav1lCe1EcHS/NjlDRQ0S4//rPn7Gw5qA/knzrk4GBtMcTngnoc+zN5f7KH9p+8N0J8cqmLRjIvSurL0ZrOYyBRj5f4MhdGZnNb63HcORvJ6wpm3xHFl4F3PZvK8SkAJmjnLIc5j6tzBhn2SeO0mbpuw7qu/Oe/+e+qA4E7M4SZfA/VHctC6Q81RBTIUcjo/eY3t8+5FiqHSJnX25qfgwcw2YaRgb5DwbsiiaZbhOcyfTsgwiKZpznPMTY6pP3WKZr8CKbJhc9SbzwlGL10zzyKSLwWMO3JwurY2SnBAJYBPz0OHh8BcKJtSB5s1AxTy01+eGlfggWZBAl8GrRn7eK+SynjaRPT1uxxZPG7WDTCO9AuzRqWB240YmAeCG/8hJQwNUC9U/GXqRDklkr4zzVMLdzIHcjdBmX671ALgyhyBDbMpmx6vRjXKuBQkEXvjh+Hc0P0N/THQc/giIPbNLiUdmzLCW1n0d0BjFkL+I72Z2Bb6UdWXdjwW8TVooXJ4PwE6uRyJwnn204e6ie0lkPIBZTnq1ePCi1C0f1V8s2qyCU=
  secret: GIT_RSA
jobs:
  include:
  - stage: test
    env:
    - RAILS_ENV=test
    bundler_args: "--without production"
    before_install:
    - echo "Install elm-lang and elm-css"
    - echo "elm version = $ELM_VERSION"
    - echo "elm css version = $ELM_CSS_VERSION"
    - npm install -g elm@$ELM_VERSION elm-css@$ELM_CSS_VERSION
    install:
    - cd $TRAVIS_BUILD_DIR
    - echo "Install restbus (ruby on rails)"
    - cd $TRAVIS_BUILD_DIR/restbus
    - make install
    - echo "Install client (elm)"
    - cd $TRAVIS_BUILD_DIR/client
    - make install
    script:
    - echo "test restbus (ruby on rails)"
    - cd $TRAVIS_BUILD_DIR/restbus
    - bin/rspec
  - stage: deploy
    env:
    - MY_NAME=<NAME>
    before_install:
    - echo print environment variables
    - env
    - echo "decrypt file"
    - echo $encrypted_28d45bc136a3_key
    - echo $encrypted_28d45bc136a3_iv
    - openssl aes-256-cbc -K $encrypted_28d45bc136a3_key -iv $encrypted_28d45bc136a3_iv -in $TRAVIS_BUILD_DIR/travis_ci_rsa.enc -out $TRAVIS_BUILD_DIR/travis_ci_rsa -d
    - chmod go-rwx $TRAVIS_BUILD_DIR/travis_ci_rsa
    - eval `ssh-agent`
    - ssh-add $TRAVIS_BUILD_DIR/travis_ci_rsa
    - echo "clone secrets repo"
    - git clone <EMAIL>:ofer987/secrets.git $TRAVIS_BUILD_DIR/secrets
    - echo "Install cookbooks"
    - mkdir -p $TRAVIS_BUILD_DIR/cookbooks
    - echo "\tclone transit.tips cookbook"
    - git clone <EMAIL>:ofer987/cookbook-client.git $TRAVIS_BUILD_DIR/cookbooks/transit.tips
    install:
    - echo "Installing Chef DK"
    - curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -c current -P chefdk
    - mkdir -p $TRAVIS_BUILD_DIR/trusted_certs
    - cp $TRAVIS_BUILD_DIR/secrets/chef/* $TRAVIS_BUILD_DIR/
    - cp $TRAVIS_BUILD_DIR/secrets/trusted_certs/* $TRAVIS_BUILD_DIR/trusted_certs/
    - echo "Installed Chef DK"
    - echo "bootstrap a new chef-node"
    - gem install seedee --version 0.1.7
    - seedee
    - echo "bootstraped a new chef-node"
    after_install:
    - echo "Chef Version is $(chef --version)"
    - echo "Chef is installed at $(which chef)"
    - echo "Chef Client Version is $(chef-client --version)"
    - echo "Chef Client is installed at $(which chef-client)"
    - echo "Knife Version is $(knife --version)"
    - echo "Knife is installed at $(which knife)"
    script: skip
stages:
- name: test
  if: env(SKIP_TEST)=TRUE
- name: deploy

{'fraction_non_alphanumeric': 0.10035667963683528, 'fraction_numerical': 0.036640726329442284, 'mean_word_length': 3.4001426533523538, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '42923', 'n_tokens_mistral': 2775, 'n_tokens_neox': 2636, 'n_words': 461}