<commit_before>language: elixir

dist: trusty
sudo: required

services:
  - docker

otp_release: '21.3'

elixir: '1.8'

env:
  global:
    - DOCKER_COMPOSE_VERSION=1.23.1

jobs:
  include:
    - &test
      stage: test
      script: mix test
      before_script:
        - docker-compose --file docker-compose.yml --file docker-compose.cassandra.yml up -d
        - ./test/docker/health-check-services.sh
      env: CASSANDRA_VERSION=3

    - <<: *test
      elixir: '1.6'
      otp_release: '19.3'
      env: CASSANDRA_VERSION=3

    - <<: *test
      env: CASSANDRA_VERSION=3 AUTHENTICATION=true

    - <<: *test
      env: CASSANDRA_VERSION=2.2

    - <<: *test
      env: CASSANDRA_VERSION=2.2 AUTHENTICATION=true

    - &test-scylla
      stage: test scylla
      script: mix test --exclude cassandra_specific
      before_script:
        - docker-compose --file docker-compose.yml --file docker-compose.scylla.yml up -d
        - ./test/docker/health-check-services.sh
      env: SCYLLA_VERSION=2.3.0

    - <<: *test-scylla
      elixir: '1.6'
      otp_release: '19.3'
      env: SCYLLA_VERSION=2.3.0

    - <<: *test-scylla
      env: SCYLLA_VERSION=2.3.0 AUTHENTICATION=true
    
    - <<: *test-scylla
      env: SCYLLA_VERSION=2.0.0

    - <<: *test-scylla
      env: SCYLLA_VERSION=2.0.0 AUTHENTICATION=true

    - &test-encrypted
      stage: test encrypted
      script: mix test --only encryption
      before_script:
        - docker-compose --file docker-compose.yml --file docker-compose.cassandra-encrypted.yml up -d
        - ./test/docker/health-check-services.sh
      env: CASSANDRA_VERSION=3

    - stage: check formatted
      script: mix format --check-formatted
      before_install: skip
      sudo: false
      env: null

stages:
  - check formatted
  - test
  - test scylla
  - test encrypted

before_install:
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) > docker-compose
  - chmod +x docker-compose<commit_msg>Use built-in docker-compose in Travis CI (#151)<commit_after>language: elixir

dist: trusty
sudo: required

services:
  - docker

otp_release: '21.3'

elixir: '1.8'

jobs:
  include:
    - &test
      stage: test
      script: mix test
      before_script:
        - docker-compose --file docker-compose.yml --file docker-compose.cassandra.yml up -d
        - ./test/docker/health-check-services.sh
      env: CASSANDRA_VERSION=3

    - <<: *test
      elixir: '1.6'
      otp_release: '19.3'
      env: CASSANDRA_VERSION=3

    - <<: *test
      env: CASSANDRA_VERSION=3 AUTHENTICATION=true

    - <<: *test
      env: CASSANDRA_VERSION=2.2

    - <<: *test
      env: CASSANDRA_VERSION=2.2 AUTHENTICATION=true

    - &test-scylla
      stage: test scylla
      script: mix test --exclude cassandra_specific
      before_script:
        - docker-compose --file docker-compose.yml --file docker-compose.scylla.yml up -d
        - ./test/docker/health-check-services.sh
      env: SCYLLA_VERSION=2.3.0

    - <<: *test-scylla
      elixir: '1.6'
      otp_release: '19.3'
      env: SCYLLA_VERSION=2.3.0

    - <<: *test-scylla
      env: SCYLLA_VERSION=2.3.0 AUTHENTICATION=true
    
    - <<: *test-scylla
      env: SCYLLA_VERSION=2.0.0

    - <<: *test-scylla
      env: SCYLLA_VERSION=2.0.0 AUTHENTICATION=true

    - &test-encrypted
      stage: test encrypted
      script: mix test --only encryption
      before_script:
        - docker-compose --file docker-compose.yml --file docker-compose.cassandra-encrypted.yml up -d
        - ./test/docker/health-check-services.sh
      env: CASSANDRA_VERSION=3

    - stage: check formatted
      script: mix format --check-formatted
      before_install: skip
      sudo: false
      env: null

stages:
  - check formatted
  - test
  - test scylla
  - test encrypted
{'fraction_non_alphanumeric': 0.12151964610981004, 'fraction_numerical': 0.021597710122300287, 'mean_word_length': 2.2356902356902357, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2515587', 'n_tokens_mistral': 1503, 'n_tokens_neox': 1405, 'n_words': 274}