tiscript 0.0.3

Turing-Incomplete TypeScript as a Configuration Language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -xe -o pipefail

# use homebrew-installed LLVM on macOS
if [[ "$OSTYPE" == "darwin"* ]]; then
  PATH="$(brew --prefix llvm)/bin:$PATH"
  export PATH
fi

cargo clean
rm -rf .cover
RUSTFLAGS="-C instrument-coverage"  LLVM_PROFILE_FILE="./.cover/%m_%p.profraw" cargo test

llvm-profdata merge -sparse .cover/*.profraw -o .cover/coverage.profdata
llvm-cov report --show-region-summary=0 --instr-profile .cover/coverage.profdata target/debug/tiscript --sources src