<commit_before>commands:

  make: !Command
    description: Build the library
    container: ubuntu
    run: [cargo, build]

  cargo: !Command
    description: Run arbitrary cargo command
    container: ubuntu
    run: [cargo]

  init_graphite: !Command
    description: Init graphite-web
    container: graphite
    work-dir: /opt/graphite/webapp/graphite
    run: |
      python manage.py syncdb --noinput
      mkdir -p /work/tmp/log/webapp

  run: !Supervise
    description: "Runs carbon with graphite-web fed with random values
                 (prerequisite: `init_graphite`)"
    children:
      rnd: !Command
        container: ubuntu
        run: |
          sleep 1
          cargo run --example feed_random_threaded
      carbon: !Command
        container: graphite
        work-dir: /opt/graphite
        run:
        - ./bin/carbon-cache.py
        - start
        - --debug

      graphite-web: &graphite !Command
        container: graphite
        work-dir: /opt/graphite/webapp/graphite
        run:
        - python
        - manage.py
        - runserver

containers:

  ubuntu:
    setup:
    - !Ubuntu trusty
    - !UbuntuUniverse<commit_msg>vagga.yaml: run command cleans carbon pid file<commit_after>commands:

  make: !Command
    description: Build the library
    container: ubuntu
    run: [cargo, build]

  cargo: !Command
    description: Run arbitrary cargo command
    container: ubuntu
    run: [cargo]

  init_graphite: !Command
    description: Init graphite-web
    container: graphite
    work-dir: /opt/graphite/webapp/graphite
    run: |
      python manage.py syncdb --noinput
      mkdir -p /work/tmp/log/webapp

  run: !Supervise
    description: "Runs carbon with graphite-web fed with random values
                 (prerequisite: `init_graphite`)"
    children:
      rnd: !Command
        container: ubuntu
        run: |
          sleep 1
          cargo run --example feed_random_threaded
      carbon: !Command
        container: graphite
        work-dir: /opt/graphite
        run: |
          rm /work/tmp/carbon-cache-a.pid || true
          ./bin/carbon-cache.py start --debug
      graphite-web: &graphite !Command
        container: graphite
        work-dir: /opt/graphite/webapp/graphite
        run:
        - python
        - manage.py
        - runserver

containers:

  ubuntu:
    setup:
    - !Ubuntu trusty
    - !UbuntuUniverse
{'fraction_non_alphanumeric': 0.08688387635756056, 'fraction_numerical': 0.000835421888053467, 'mean_word_length': 1.9714640198511166, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7073495', 'n_tokens_mistral': 752, 'n_tokens_neox': 698, 'n_words': 192}