<commit_before>before_cache:
  - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
  directories:
    - node_modules
    - frontend/node_modules
    - build/npm
    - $HOME/.npm
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
language: groovy
jdk:
  - openjdk8

services:
  - docker

# Skip the install step. Don't `go get` dependencies. Only build with the code
# in vendor/
install: true

# Don't email me the results of the test runs.
notifications:
  email:
    on_success: never
    on_failure: always

# get google-chrome-stable
addons:
  chrome: stable

# Install ChromeDriver
install:
  - wget -N https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip -P ~/
  - unzip ~/chromedriver_linux64.zip -d ~/
  - rm ~/chromedriver_linux64.zip
  - sudo mv -f ~/chromedriver /usr/local/share/
  - sudo chmod +x /usr/local/share/chromedriver
  - sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

jobs:
  include:
  - stage: Tests
    name: "unitTests"
    script:
    - ./gradlew -x jasmineRun -x angularTests test
  - name: "integrationTests"
    script:
    - ./gradlew integrationTest --tests "de.iteratec.osm.**"  --stacktrace
  - name: "gebTests"
    script:
    - whereis google-chrome-stable
    - whereis chromedriver
    - ./gradlew integrationTest --tests "geb.**.*"  --stacktrace
  - name: "jasmineTests"
    script:
    - ./gradlew jasmineRun
  - name: "angularTests"
    script:
    - ./gradlew angularTests
  - stage: Build and Push Docker Image
    script: skip # You do not want to run the tests again
    deploy:
      provider: script
      script:
          groovy scripts/ci/building/set_new_versionnumber_travis_dev;
          ./gradlew assemble;
          echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
          docker build -t iteratec/openspeedmonitor . ;
          docker tag iteratec/openspeedmonitor iteratec/openspeedmonitor:develop;
          docker push iteratec/openspeedmonitor:develop;
          git stash -u; # in order to prevent double checking of cached resources
      on:
        branch: develop
<commit_msg>Feature/travis docker build (#70)<commit_after>before_cache:
  - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
  directories:
    - node_modules
    - frontend/node_modules
    - build/npm
    - $HOME/.npm
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
language: groovy
jdk:
  - openjdk8

services:
  - docker

# Skip the install step. Don't `go get` dependencies. Only build with the code
# in vendor/
install: true

# Don't email me the results of the test runs.
notifications:
  email:
    on_success: never
    on_failure: always

# get google-chrome-stable
addons:
  chrome: stable

# Install ChromeDriver
install:
  - wget -N https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip -P ~/
  - unzip ~/chromedriver_linux64.zip -d ~/
  - rm ~/chromedriver_linux64.zip
  - sudo mv -f ~/chromedriver /usr/local/share/
  - sudo chmod +x /usr/local/share/chromedriver
  - sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

jobs:
  include:
  - stage: Tests
    name: "unitTests"
    script:
    - ./gradlew -x jasmineRun -x angularTests test
  - name: "integrationTests"
    script:
    - ./gradlew integrationTest --tests "de.iteratec.osm.**"  --stacktrace
  - name: "gebTests"
    script:
    - whereis google-chrome-stable
    - whereis chromedriver
    - ./gradlew integrationTest --tests "geb.**.*"  --stacktrace
  - name: "jasmineTests"
    script:
    - ./gradlew jasmineRun
  - name: "angularTests"
    script:
    - ./gradlew angularTests
  - stage: Build and Push Docker Image
    script: skip # You do not want to run the tests again
    deploy:
      provider: script
      script:
          groovy scripts/ci/building/set_new_versionnumber_travis_dev;
          ./gradlew assemble;
          echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
          docker build -t iteratec/openspeedmonitor:develop;
          docker push iteratec/openspeedmonitor:develop;
          curl --user $BAMBOO_TU_USERNAME:$BAMBOO_TU_PASSWORD -X POST -d "$STAGE_NAME&ExecuteAllStages" $BAMBOO_BUILD_ADDRESS;
          git stash -u; # in order to prevent double checking of cached resources
      on:
        branch:   develop
{'fraction_non_alphanumeric': 0.1085503572251671, 'fraction_numerical': 0.005992164093109011, 'mean_word_length': 2.6439966414777496, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '165691', 'n_tokens_mistral': 1520, 'n_tokens_neox': 1421, 'n_words': 371}