<commit_before>version: "{build}"

image:
  - Ubuntu1804

platform:
  - x64

environment:
  crate_name: audiobookfinder
  matrix:
    - target: x86_64-unknown-linux-gnu

# build configuration, i.e. Debug, Release, etc.
configuration:
#  - Debug
  - Release

# scripts that are called at very beginning, before repo cloning
# ACCEPT_EULA for some windows packages .. whatever
init:
  - sh: sudo apt-get update
# upgrade later when we know it works - sh: sudo ACCEPT_EULA=Y apt-get --yes
  - sh: sudo apt-get --yes install build-essential
  - sh: sudo apt-get --yes install libavahi-compat-libdnssd-dev
  - sh: sudo apt-get --yes install libsodium-dev
  - sh: sudo apt-get --yes install libtag1-dev libtagc0-dev

# scripts that run after cloning repository
install:
  - sh: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > ./rustup.sh
  - sh: sh ./rustup.sh -y 
# for debugging: ls -al
  - sh: source $HOME/.cargo/env
# it's a clean install so not needed: rustup update
  - sh: rustup toolchain install nightly
  - sh: rustup target install %target%


build_script:
  - sh: cargo build

test_script:
  - cargo build --release --target %target%
  - cargo run --release --target %target% 
  - cargo test --release --target %target%
  - ./target/%target%/release/%crate_name% -- testaudio<commit_msg>[deployment] appveyor target variable test 2<commit_after>version: "{build}"

image:
  - Ubuntu1804

platform:
  - x64

environment:
  CRATE_NAME: audiobookfinder
  matrix:
    - TARGET: x86_64-unknown-linux-gnu

# build configuration, i.e. Debug, Release, etc.
configuration:
#  - Debug
  - Release

# scripts that are called at very beginning, before repo cloning
# ACCEPT_EULA for some windows packages .. whatever
init:
  - sh: sudo apt-get update
# upgrade later when we know it works - sh: sudo ACCEPT_EULA=Y apt-get --yes
  - sh: sudo apt-get --yes install build-essential
  - sh: sudo apt-get --yes install libavahi-compat-libdnssd-dev
  - sh: sudo apt-get --yes install libsodium-dev
  - sh: sudo apt-get --yes install libtag1-dev libtagc0-dev

# scripts that run after cloning repository
install:
  - sh: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > ./rustup.sh
  - sh: sh ./rustup.sh -y 
# for debugging: ls -al
  - sh: source $HOME/.cargo/env
# it's a clean install so not needed: rustup update
  - sh: rustup toolchain install nightly
  - sh: rustup target install $(TARGET)


build_script:
  - sh: cargo build

test_script:
  - cargo build --release --target $(TARGET)
  - cargo run --release --target $(TARGET)
  - cargo test --release --target $(TARGET)
  - ./target/$(TARGET)/release/$(CRATE_NAME) -- testaudio
{'fraction_non_alphanumeric': 0.1216012084592145, 'fraction_numerical': 0.01095166163141994, 'mean_word_length': 3.044274809160305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '47589', 'n_tokens_mistral': 931, 'n_tokens_neox': 885, 'n_words': 296}