We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 860f0b7 commit e15c22dCopy full SHA for e15c22d
tests/test_cmark_spec/spec.sh
@@ -1,26 +1,8 @@
1
-#!/usr/bin/env bash
+#!/bin/sh
2
3
-set -e
+set -eux
4
5
-REPO="https://github.com/commonmark/CommonMark.git"
6
VERSION="0.30"
+URL="https://spec.commonmark.org/$VERSION/spec.json"
7
8
-function main {
9
- echo "Cloning from repo: $REPO..."
10
- git clone --quiet $REPO
11
-
12
- echo "Using version $VERSION..."
13
- cd "CommonMark"
14
- git checkout --quiet $VERSION
15
16
- echo "Dumping tests file..."
17
- python3 "test/spec_tests.py" --dump-tests > "../commonmark.json"
18
19
- echo "Cleaning up..."
20
- cd ..
21
- rm -rf CommonMark
22
23
- echo "Done."
24
-}
25
26
-main
+curl -sL "$URL" -o "commonmark.json"
0 commit comments