File: spec.sh

package info (click to toggle)
markdown-it-py 3.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,780 kB
  • sloc: python: 5,214; xml: 39; sh: 29; makefile: 24
file content (26 lines) | stat: -rwxr-xr-x 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash

set -e

REPO="https://github.com/commonmark/CommonMark.git"
VERSION="0.30"

function main {
    echo "Cloning from repo: $REPO..."
    git clone --quiet $REPO

    echo "Using version $VERSION..."
    cd "CommonMark"
    git checkout --quiet $VERSION

    echo "Dumping tests file..."
    python3 "test/spec_tests.py" --dump-tests > "../commonmark.json"

    echo "Cleaning up..."
    cd ..
    rm -rf CommonMark

    echo "Done."
}

main