<commit_before>machine:
  java:
    version: openjdk8
  node:
    version: 5.7.0
  environment:
    PROJECT_NAME: akvo-lumen
    PROD_CLUSTER_NAME: lumen
    DEV_CLUSTER_NAME: dev-cluster
    CLOUDSDK_COMPUTE_ZONE: europe-west1-d
    DEBIAN_FRONTEND: noninteractive
    LEIN_FAST_TRAMPOLINE: true
  services:
    - docker

dependencies:
  cache_directories:
    - "~/docker"
    - "~/.package_cache"

  pre:
    # Keycloak
    - if [[ -e ~/docker/keycloak.tar ]]; then docker load -i ~/docker/keycloak.tar; fi
    - docker build --rm=false -t jboss/keycloak:3.1.0.Final ./keycloak
    - mkdir -p ~/docker; docker save jboss/keycloak > ~/docker/keycloak.tar
    - ./server.sh build:
        pwd: keycloak
    - ./server.sh run:
        pwd: keycloak
    # Backend
    - cp profiles.clj.template profiles.clj:
        pwd: backend
    - ./setup.sh:
        pwd: backend/provision
    - mkdir -p $HOME/.lein
    - echo '{:user {:plugins [[jonase/eastwood "0.2.3"]]}}' > $HOME/.lein/profiles.clj
    # Client
    - npm config set spin false:
        pwd: client
    - npm install -g npm-cache
    - npm-cache install:
        pwd: client

test:
  override:
    - lein do clean, check, test :all, eastwood '{:source-paths ["src" "test"]}':
        pwd: backend
    - npm run lint:
        pwd: client
    - npm test:
        pwd: client<commit_msg>[#927] Remove Keycloak container build optimisations<commit_after>machine:
  java:
    version: openjdk8
  node:
    version: 5.7.0
  environment:
    PROJECT_NAME: akvo-lumen
    PROD_CLUSTER_NAME: lumen
    DEV_CLUSTER_NAME: dev-cluster
    CLOUDSDK_COMPUTE_ZONE: europe-west1-d
    DEBIAN_FRONTEND: noninteractive
    LEIN_FAST_TRAMPOLINE: true
  services:
    - docker

dependencies:
  cache_directories:
    - "~/.package_cache"

  pre:
    # Keycloak
    - ./server.sh build:
        pwd: keycloak
    - ./server.sh run:
        pwd: keycloak
    # Backend
    - cp profiles.clj.template profiles.clj:
        pwd: backend
    - ./setup.sh:
        pwd: backend/provision
    - mkdir -p $HOME/.lein
    - echo '{:user {:plugins [[jonase/eastwood "0.2.3"]]}}' > $HOME/.lein/profiles.clj
    # Client
    - npm config set spin false:
        pwd: client
    - npm install -g npm-cache
    - npm-cache install:
        pwd: client

test:
  override:
    - lein do clean, check, test :all, eastwood '{:source-paths ["src" "test"]}':
        pwd: backend
    - npm run lint:
        pwd: client
    - npm test:
        pwd: client
{'fraction_non_alphanumeric': 0.12126111560226355, 'fraction_numerical': 0.00889248181083266, 'mean_word_length': 2.197674418604651, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, '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': '554682', 'n_tokens_mistral': 964, 'n_tokens_neox': 904, 'n_words': 211}