<commit_before>language: java

jdk:
  - openjdk7
  
before_script:
   - "gem install travis-artifacts"
   - "wget http://aphyr.com/riemann/riemann_0.2.2_all.deb"
   - "sudo dpkg -i riemann_0.2.2_all.deb"
   - "sudo touch /var/log/riemann/riemann.log"
   - "sudo chmod 666 /var/log/riemann/riemann.log"

install:
#    !!! WARNING: NEVER USE THE mvn -X SWITCH AS IT LOGS THE SECRET KEY ENV VARIABLES !!!
#   - "mvn install -DskipTests -f travis-pom.xml"
   - "mvn package -Pall -f cosmo-manager/pom.xml"
   - "python workflows/setup.py install"

script:
#    !!! WARNING: NEVER USE THE mvn -X SWITCH AS IT LOGS THE SECRET KEY ENV VARIABLES !!!
   - "mvn verify -f travis-pom.xml"
   - "nosetests -s workflows/tests"
   

after_success:
  - "cd orchestrator;mvn install -Pall"
  - "test ${TRAVIS_BRANCH} = develop && travis-artifacts upload --path $HOME/.m2/repository/org/cloudifysource/cosmo/bootstrapper --target-path travisci"
  - "test ${TRAVIS_BRANCH} = develop && travis-artifacts upload --path $HOME/.m2/repository/org/cloudifysource/cosmo/orchestrator --target-path travisci"
  - "test ${TRAVIS_BRANCH} = develop && travis-artifacts upload --path $HOME/.m2/repository/org/cloudifysource/cosmo/state-cache --target-path travisci"

env:
 global:
   - "ARTIFACTS_AWS_REGION=us-east-1"
   - "ARTIFACTS_S3_BUCKET=cosmo-snapshot-maven-repository"
   - secure: "<KEY>
   - secure: "<KEY>

# Comments: 
# 
#  Don't use your direct AWS credentials. Create limited credentials with Amazon IAM. Here are is the relevant group policy for IAM:
#
# 
# {
#   "Version": "2012-10-17",
#   "Statement": [
#     {
#       "Effect": "Allow",
#       "Action": [
#          "s3:GetObject*", "s3:PutObject*", "s3:DeleteObject*"
#       ],
#       "Resource": [ "arn:aws:s3:::cosmo-snapshot-maven-repository/*" ]
#     },
#     {
#       "Effect": "Allow",
#       "Action": [
#          "s3:ListBucket"
#       ],
#       "Resource": [ "arn:aws:s3:::cosmo-snapshot-maven-repository" ]
#     }
#   ]
# }
# 
#  Encrypting Credentials: http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables
#              travis encrypt -r CloudifySource/cosmo-manager ARTIFACTS_AWS_ACCESS_KEY_ID=xxxxx
#              travis encrypt -r CloudifySource/cosmo-manager ARTIFACTS_AWS_SECRET_ACCESS_KEY=xxxxx

#  How to upload travis artifacts:
#      https:# github.com/travis-ci/travis-artifacts
#      http://stackoverflow.com/questions/16406727/how-to-upload-travis-artifacts-to-s3-only-in-develop-branch/16406929?noredirect=1#16406929
#
#  How to find local maven repo: http:# stackoverflow.com/questions/5916157/how-to-get-the-maven-local-repo
#  Do not use mvn -X switch as it exposes the environment variables and exposes the secret key.
<commit_msg>CLOUDIFY-2049 fixed pom.xml path<commit_after>language: java

jdk:
  - openjdk7
  
before_script:
   - "gem install travis-artifacts"
   - "wget http://aphyr.com/riemann/riemann_0.2.2_all.deb"
   - "sudo dpkg -i riemann_0.2.2_all.deb"
   - "sudo touch /var/log/riemann/riemann.log"
   - "sudo chmod 666 /var/log/riemann/riemann.log"

install:
#    !!! WARNING: NEVER USE THE mvn -X SWITCH AS IT LOGS THE SECRET KEY ENV VARIABLES !!!
#   - "mvn install -DskipTests -f travis-pom.xml"
   - "mvn package -Pall -f orchestrator/pom.xml"
   - "python workflows/setup.py install"

script:
#    !!! WARNING: NEVER USE THE mvn -X SWITCH AS IT LOGS THE SECRET KEY ENV VARIABLES !!!
   - "mvn verify -f travis-pom.xml"
   - "nosetests -s workflows/tests"
   

after_success:
  - "cd orchestrator;mvn install -Pall"
  - "test ${TRAVIS_BRANCH} = develop && travis-artifacts upload --path $HOME/.m2/repository/org/cloudifysource/cosmo/bootstrapper --target-path travisci"
  - "test ${TRAVIS_BRANCH} = develop && travis-artifacts upload --path $HOME/.m2/repository/org/cloudifysource/cosmo/orchestrator --target-path travisci"
  - "test ${TRAVIS_BRANCH} = develop && travis-artifacts upload --path $HOME/.m2/repository/org/cloudifysource/cosmo/state-cache --target-path travisci"

env:
 global:
   - "ARTIFACTS_AWS_REGION=us-east-1"
   - "ARTIFACTS_S3_BUCKET=cosmo-snapshot-maven-repository"
   - secure: "<KEY>
   - secure: "<KEY>

# Comments: 
# 
#  Don't use your direct AWS credentials. Create limited credentials with Amazon IAM. Here are is the relevant group policy for IAM:
#
# 
# {
#   "Version": "2012-10-17",
#   "Statement": [
#     {
#       "Effect": "Allow",
#       "Action": [
#          "s3:GetObject*", "s3:PutObject*", "s3:DeleteObject*"
#       ],
#       "Resource": [ "arn:aws:s3:::cosmo-snapshot-maven-repository/*" ]
#     },
#     {
#       "Effect": "Allow",
#       "Action": [
#          "s3:ListBucket"
#       ],
#       "Resource": [ "arn:aws:s3:::cosmo-snapshot-maven-repository" ]
#     }
#   ]
# }
# 
#  Encrypting Credentials: http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables
#              travis encrypt -r CloudifySource/cosmo-manager ARTIFACTS_AWS_ACCESS_KEY_ID=xxxxx
#              travis encrypt -r CloudifySource/cosmo-manager ARTIFACTS_AWS_SECRET_ACCESS_KEY=xxxxx

#  How to upload travis artifacts:
#      https:# github.com/travis-ci/travis-artifacts
#      http://stackoverflow.com/questions/16406727/how-to-upload-travis-artifacts-to-s3-only-in-develop-branch/16406929?noredirect=1#16406929
#
#  How to find local maven repo: http:# stackoverflow.com/questions/5916157/how-to-get-the-maven-local-repo
#  Do not use mvn -X switch as it exposes the environment variables and exposes the secret key.

{'fraction_non_alphanumeric': 0.1444363899963755, 'fraction_numerical': 0.023196810438564697, 'mean_word_length': 3.2033511043412033, 'pattern_counts': {'":': 16, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '5026316', 'n_tokens_mistral': 2186, 'n_tokens_neox': 2073, 'n_words': 399}