<commit_before>kind: pipeline
type: docker
name: default

steps:
  - name: build
    image: node
    commands:
      - cd web
      - npm install
      - npm run build
      - cd ..
    when:
      branch:
        - master
      event:
        - push

  - name: deploy-testing
    image: debian
    commands:
      - apt-get -qq update && apt-get -qq install git > /dev/null
      - sed -i 's/target_version = git/target_version = testing/' configuration.default.ini
      - version=$(git rev-parse HEAD)
      - echo "current git commit is $version"
      - echo $version > /tmp/botamusique/testing-version
      - sed -i "s/version = 'git'/version = '$version'/" mumbleBot.py
      - rm -rf .git*
      - rm -rf web
      - tar -czf /tmp/botamusique/sources-testing.tar.gz .
    volumes:
      - name: repo<commit_msg>Build Test on pull requests<commit_after>kind: pipeline
type: docker
name: default

steps:
  - name: build
    image: node
    commands:
      - cd web
      - npm install
      - npm run build
      - cd ..
    when:
      branch:
        - master
      event:
        - push
        - pull_request

  - name: deploy-testing
    image: debian
    commands:
      - apt-get -qq update && apt-get -qq install git > /dev/null
      - sed -i 's/target_version = git/target_version = testing/' configuration.default.ini
      - version=$(git rev-parse HEAD)
      - echo "current git commit is $version"
      - echo $version > /tmp/botamusique/testing-version
      - sed -i "s/version = 'git'/version = '$version'/" mumbleBot.py
      - rm -rf .git*
      - rm -rf web
      - tar -czf /tmp/botamusique/sources-testing.tar.gz .
    volumes:
      - name: repo
{'fraction_non_alphanumeric': 0.1174716756112105, 'fraction_numerical': 0.0, 'mean_word_length': 1.7598684210526316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '39351', 'n_tokens_mistral': 543, 'n_tokens_neox': 526, 'n_words': 152}