<commit_before>sudo: false
language: java
jdk: openjdk7

cache:
    directories:
        - $HOME/.m2
        - $HOME/maven

env:
    - MAVEN_VERSION=3.3.3

install:
    - mkdir -p ~/maven
    - |
        test -d ~/maven/$MAVEN_VERSION/bin || { \
            find ~/maven -mindepth 1 -delete && \
            mkdir -p ~/maven/$MAVEN_VERSION && \
            wget -O - http://www.eu.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | \
                tar -C ~/maven/$MAVEN_VERSION --strip-components=1 -xzf -; }

before_script:
    - mkdir -p ~/.m2
    - cp .travis/settings.xml ~/.m2
    - mysql --user travis --password= <<< 'CREATE DATABASE cgds_test'
    - cp src/main/resources/spring.security.url.intercepts .travis/src/main/resources
    - phantomjs --version

script:
    - export PORTAL_HOME=$(pwd)
    - cp $PORTAL_HOME/src/main/resources/portal.properties.EXAMPLE $PORTAL_HOME/src/main/resources/portal.properties
    - cp $PORTAL_HOME/src/main/resources/log4j.properties.EXAMPLE $PORTAL_HOME/src/main/resources/log4j.properties
    - ~/maven/$MAVEN_VERSION/bin/mvn -e -DPORTAL_HOME=$PORTAL_HOME -Ppublic -DskipTests -Ddb.user=cbio_user -Ddb.password=<PASSWORD> -Ddb.portal_db_name=public_test -Ddb.connection_string=jdbc:mysql://cbioportal-public.c1xhhbwn8izk.us-east-1.rds.amazonaws.com:3306/ -Ddb.host=cbioportal-public.c1xhhbwn8izk.us-east-1.rds.amazonaws.com clean install
    - java -Ddbconnector=dbcp -jar portal/target/dependency/webapp-runner.jar --expand-war portal/target/cbioportal.war &
    - sleep 10s
    - bash -x test/end-to-end/test_make_screenshots.sh

notifications:
  slack: cbioportal:S2qVTFTFMtizONhCOe8BYxS6
  <commit_msg>Don't copy url intercepts on travis<commit_after>sudo: false
language: java
jdk: openjdk7

cache:
    directories:
        - $HOME/.m2
        - $HOME/maven

env:
    - MAVEN_VERSION=3.3.3

install:
    - mkdir -p ~/maven
    - |
        test -d ~/maven/$MAVEN_VERSION/bin || { \
            find ~/maven -mindepth 1 -delete && \
            mkdir -p ~/maven/$MAVEN_VERSION && \
            wget -O - http://www.eu.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | \
                tar -C ~/maven/$MAVEN_VERSION --strip-components=1 -xzf -; }

before_script:
    - mkdir -p ~/.m2
    - cp .travis/settings.xml ~/.m2
    - mysql --user travis --password= <<< 'CREATE DATABASE cgds_test'
    - phantomjs --version

script:
    - export PORTAL_HOME=$(pwd)
    - cp $PORTAL_HOME/src/main/resources/portal.properties.EXAMPLE $PORTAL_HOME/src/main/resources/portal.properties
    - cp $PORTAL_HOME/src/main/resources/log4j.properties.EXAMPLE $PORTAL_HOME/src/main/resources/log4j.properties
    - ~/maven/$MAVEN_VERSION/bin/mvn -e -DPORTAL_HOME=$PORTAL_HOME -Ppublic -DskipTests -Ddb.user=cbio_user -Ddb.password=<PASSWORD> -Ddb.portal_db_name=public_test -Ddb.connection_string=jdbc:mysql://cbioportal-public.c1xhhbwn8izk.us-east-1.rds.amazonaws.com:3306/ -Ddb.host=cbioportal-public.c1xhhbwn8izk.us-east-1.rds.amazonaws.com clean install
    - java -Ddbconnector=dbcp -jar portal/target/dependency/webapp-runner.jar --expand-war portal/target/cbioportal.war &
    - sleep 10s
    - bash -x test/end-to-end/test_make_screenshots.sh

notifications:
  slack: cbioportal:S2qVTFTFMtizONhCOe8BYxS6
  
{'fraction_non_alphanumeric': 0.14088729016786572, 'fraction_numerical': 0.01618705035971223, 'mean_word_length': 2.8667439165701043, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '6143902', 'n_tokens_mistral': 1337, 'n_tokens_neox': 1281, 'n_words': 180}